hello guys any password example on react native?
# support-questions-legacy
u
hello guys any password example on react native?
r
you mean passwordless or email password?
u
only phone number
so passwordless
r
We don't have an example for that yet. But essentially, you want to call the
/signinup/code
API with the phone number of the user (https://app.swaggerhub.com/apis/supertokens/FDI/1.14.0#/Passwordless%20Recipe/passwordlessSignInUpStart). This will send them an SMS as well. When they enter their OTP in the form on your app, you should call the
/signinup/code/consume
API with the OTP they entered (https://app.swaggerhub.com/apis/supertokens/FDI/1.14.0#/Passwordless%20Recipe/passwordlessSignInUpConsume). This API will also return session tokens if successful. The tokens will be managed by our SDK automatically,.
u
thanky ou
you
4 Views