Hey @rp_st I want overwrite PASSWORDLESS_CREATE_CODE api in the backend and want the user to redirect to a different url in certain cases, manually returning res.redirect doesnt seem to work? Any ideas
r
rp_st
01/27/2023, 5:38 AM
hey @showtim33
See the section in our docs on sending custom response to the frontend.
ANd on the frontend, you can use the
postAPIHook
in your recipe to consume the custom response and do a redirection. The
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).