Skip to main content
Version: 8.2.X


The init function#

import SuperTokens from 'supertokens-website';
SuperTokens.init({    apiDomain: ""});
  • To be called at least once before any http request is made to any of your APIs that require authentication.
  • You only need to call this once in your SPA app or on page load.

Please see the API Reference for more information on the available config options.