RedirectToAuth reference API
The redirectToAuth
method simply redirect the user to sign-in/sign-up page UI.
Example:
import { redirectToAuth } from "supertokens-auth-react/recipe/thirdpartyemailpassword";
redirectToAuth({show?: "signin" | "signup", redirectBack?: boolean});
- redirectToAuth:
- Description:
redirectToAuth
will redirect the user to sign-in/sign-up page UI. - Parameters:
show
(Optional): Allowed values are"signin"
and"signout"
redirectBack
(Optional): Iftrue
, will redirect the user to the current page. It isfalse
by default
- Output:
void
- Description: