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

Skip to main content
Version: 8.2.X

Checking if a session exists

The doesSessionExist function#

import SuperTokens from 'supertokens-website';

await SuperTokens.doesSessionExist();
  • Returns a boolean
  • If true: There is an active session.
  • If false: There is no active session.
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI