Skip to main content

Show Sign Up by default

By default, the Sign-In form is shown when accessing /auth route. If you prefer to show the Sign-Up form by default, you can switch the defaultToSignUp config in signInUpFeature.

import SuperTokens from "supertokens-auth-react";import EmailPassword from "supertokens-auth-react/recipe/emailpassword";import Session from "supertokens-auth-react/recipe/session";
SuperTokens.init({    appInfo: {        apiDomain: "...",        appName: "...",        websiteDomain: "..."    },    recipeList: [        EmailPassword.init({            signInAndUpFeature: {                defaultToSignUp: true            }        }),        Session.init({ /* ... */ })    ]});