@serenity-is/corelib / Authorization / username
Variable: username
username:
string
Returns the username for currently logged user. Prefer usernameAsync as this one might block the UI if the UserData
is not already loaded.
Returns
Username for currently logged user.
Example
if (Authorization.username) {
// do something
}