Skip to content

@serenity-is/corelib / Authorization / isLoggedInAsync

Variable: isLoggedInAsync

isLoggedInAsync: Promise<boolean>

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

Whether the current user is logged in (asynchronous).

Remarks

Awaits Authorization.userDefinitionAsync so it never blocks the UI thread.

Example

if (await Authorization.isLoggedInAsync) {
    // user is authenticated
}