how can I check for session without async/await on...
# support-questions-legacy
a
how can I check for session without async/await on frontend
Copy code
import SuperTokens from 'supertokens-react-native';

async function doesSessionExist() {
    if (await SuperTokens.doesSessionExist()) {
        // user is logged in
    } else {
        // user has not logged in yet
    }
}
r
Hey @aV
It’s not possible to check for that without async await on the frontend.
It requires reading from storage which is fundamentally an async operation.
a
Ok
2 Views