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