I'm having some trouble routing the user from the signup form to the
passwordless
phone number input after sign up. I'm overriding emailpassword's
signUpPOST
function by calling:
-
signUp
(/recipe/emailpassword)
-
createNewSession
(/recipe/session)
signUpPOST: async function (input) {
let signup = await signUp(
email,
password,
input.userContext
);
if (signup.status === 'OK') {
// Create database user
...
// Create session
return createNewSession(
input.options.res,
signup.user.id,
undefined,
undefined,
input.userContext
);
}
}
I'm unsure if the
input
variables I'm passing here are correct, or if there is another recipe function I should be calling.
The session and user seem to be created properly, but the frontend requires a manual refresh in order to reach the
passwordless
Second factor auth (phone number input page). Without a manual refresh, the frontend says to sign in instead since the email is already in use.