Checking if a session exists
doesSessionExist
function: API Reference
The import SuperTokensRequest from 'supertokens-website';
SuperTokensRequest.doesSessionExist();
supertokens.fetch.doesSessionExist();
- Returns a
boolean
- If
true
: There is an active session. - If
false
: There is no active session.