This SDK documentation is outdated. Please do not refer to it, and instead visit the User Guides section.

Skip to main content
Version: Next

Session init

import SuperTokens from "supertokens-auth-react";
import Session from "supertokens-auth-react/recipe/session";

SuperTokens.init({
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
recipeList: [
Session.init({...})
]
});
info
  • Learn more about the various config values here.
  • All config values except for apiDomain and apiBasePath are applicable.
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI