@serenity-is/corelib / Authorization / usernameAsync

Variable: usernameAsync

usernameAsync: Promise<string>

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

Returns the username for currently logged user.

Returns

Username for currently logged user.

Example

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