Skip to content

@serenity-is/corelib / Authorization / usernameAsync

Variable: usernameAsync

usernameAsync: Promise<string>

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

Username of the currently logged-in user (asynchronous).

Remarks

Awaits Authorization.userDefinitionAsync.

Example

const name = await Authorization.usernameAsync;