Skip to main content
Version: 0.15.X

Call the init function

import SuperTokens from "supertokens-auth-react";

SuperTokens.init({
appInfo: {
appName: string,
apiDomain: string,
websiteDomain: string,
apiBasePath?: string,
websiteBasePath?: string,
apiGatewayPath?: string
},
recipeList: [/* TODO */]
});
info

You can learn more about the appInfo object in the recipe guides.

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