Skip to main content
Version: Next

redirectToAuth({show?: "signin" | "signup", redirectBack?: boolean})

The redirectToAuth method redirects the user to sign-in/sign-up page UI.

Parameters#

  • show (Optional)
    • Allowed values are "signin" and "signout"
  • redirectBack (Optional)
    • If true, will redirect the user to the current page. It is false by default

Returns#

  • void
Which frontend SDK do you use?
supertokens-web-js / mobile
supertokens-auth-react