yes. But first you need to make a call to the create code API which will send an email to the user with the OTP.
Then when the user types in the OTP in your app, you need to call the consume code API
rp_st
04/14/2022, 3:55 PM
One quick note -> our flutter SDK is not fully upto date yet to work with the session recipe. So im not sure if it will work. But you can try.
If it doesn't work, there are alternatives in which you can override the backend APIs to issue a JWT which you can easily store in your app, and send on each request for verification. Lmk if you would like details on that
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).