Skip to main content

UserIdentity.create()

Home > @backstage/core-components > UserIdentity > create

Creates a new IdentityApi implementation using a user identity and an auth API that will be used to request backstage tokens.

Signature:

static create(options: {
identity: BackstageUserIdentity;
authApi: ProfileInfoApi & BackstageIdentityApi & SessionApi;
profile?: ProfileInfo;
}): IdentityApi;

Parameters

ParameterTypeDescription
options{ identity: BackstageUserIdentity; authApi: ProfileInfoApi & BackstageIdentityApi & SessionApi; profile?: ProfileInfo; }

Returns:

IdentityApi