Checking if a session exists
doesSessionExist
function#
The - Via NPM
- Via Script Tag
import SuperTokens from 'supertokens-website';
await SuperTokens.doesSessionExist();
await supertokens.doesSessionExist();
- Returns a
boolean
- If
true
: There is an active session. - If
false
: There is no active session.