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 ThirdPartyEmailPassword from 'supertokens-auth-react/recipe/thirdpartyemailpassword';import Session from 'supertokens-auth-react/recipe/session';
SuperTokens.init({    appInfo: {        apiDomain: "...",        appName: "...",        websiteDomain: "..."    },    recipeList: [        ThirdPartyEmailPassword.init({            signInAndUpFeature: {                defaultToSignUp: true            }        }),        Session.init({ /* ... */ })    ]});
What type of UI do you want to use?
Custom UI
Pre built UI