Skip to main content
Version: Next

AuthService.getLimitedUserToken()

Home > @backstage/backend-plugin-api > AuthService > getLimitedUserToken

Issue a limited user token that can be used e.g. in cookie flows.

Signature:

getLimitedUserToken(
credentials: BackstageCredentials<BackstageUserPrincipal>): Promise<{
token: string;
expiresAt: Date;
}>;

Parameters

Parameter

Type

Description

credentials

BackstageCredentials<BackstageUserPrincipal>

**Returns:**

Promise<{ token: string; expiresAt: Date; }>