I'm having some problems with the `ThirdPartyPassw...
# support-questions-legacy
t
I'm having some problems with the
ThirdPartyPasswordless
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
Hey!
So you are sending the passwordless code to the react native app?
If yes, how are you getting the code from the url? And what’s the request like?
t
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:
Copy code
{
  "preAuthSessionId": "",
  "linkCode": ""
}
where it should have been
Copy code
{
  "preAuthSessionId": "",
  "userInputCode": "123456",
  "deviceId": ""
}
r
yup
t
But thanks for your help anyway
7 Views