recipe. I've setup everything on both FE (React Native) and BE (Golang) and my consume request works, I am receiving a code, but when I input it I get a
RESTART_FLOW_ERROR
every single time - tried using the debug log on my backend and no information being provided from there. Any ideas?
I am adding a custom hook on sign up to add this user to my database. Don't know if that's affecting it
r
rp_st
11/02/2022, 3:53 AM
Hey!
rp_st
11/02/2022, 3:53 AM
So you are sending the passwordless code to the react native app?
rp_st
11/02/2022, 3:53 AM
If yes, how are you getting the code from the url? And what’s the request like?
t
techn0will
11/02/2022, 10:24 AM
So I was using the api to my backend, via the /auth/signinup/code then the /auth/signinup/code/consume. Scouring the OpenAPI spec I figured out my problem - when you use the mobile phone number code authentication method, the payload of the consume endpoint is different to the magic link one, strictly:
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).