@serenity-is/corelib / Authorization / isLoggedInAsync
Variable: isLoggedInAsync
isLoggedInAsync:
Promise<boolean>
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
}