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.