Hey <@498057949541826571> I want overwrite PASSWORDLESS_CREATE_CODE api in the backend and want the ...
s
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
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
postAPIHook
has a very similar to the preApiHook (https://supertokens.com/docs/passwordless/advanced-customizations/frontend-hooks/pre-api)
2 Views