yzs
08/05/2022, 8:27 AM<EmailPassword.EmailPasswordAuth>
from 'supertokens-auth-react' redirects to auth? i want to add a query paramrp_st
08/05/2022, 8:27 AMyzs
08/05/2022, 8:29 AMauth?redirectToPath=/protected&lang=kk
yzs
08/05/2022, 8:29 AMrp_st
08/05/2022, 8:38 AMEmailPassword.init({
getRedirectionURL: async function (context) {
if (context.action === "SIGN_IN_AND_UP") {
return "/auth?lang=kk"
}
return undefined;
}
})
And the value of which language to add to the query param can be fetched from localsotrage or wherever you like.yzs
08/05/2022, 8:39 AMyzs
08/05/2022, 8:41 AMrp_st
08/05/2022, 8:51 AMyzs
08/05/2022, 8:58 AMrp_st
08/05/2022, 8:58 AMuserContext
object that is passed to that.. you can open an issue about it and we can figure a way of doing ityzs
08/05/2022, 8:59 AMyzs
08/05/2022, 9:01 AMemail/phone + password + email/phone verification
yzs
08/05/2022, 9:01 AMemail+password
and some customizations?rp_st
08/05/2022, 9:03 AMyzs
08/05/2022, 9:03 AMyzs
08/05/2022, 9:04 AMrp_st
08/05/2022, 9:04 AM