@serenity-is/corelib / Authorization / isLoggedInAsync

Variable: isLoggedInAsync

isLoggedInAsync: Promise<boolean>

Defined in: src/base/authorization.ts:162

Checks if the current user is logged in.

Returns

true if the user is logged in, false otherwise.

Example

if (await Authorization.isLoggedInAsync) {
    // do something
}