Skip to main content

UserIdentity.fromLegacy()

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

Creates a new IdentityApi using a legacy SignInResult object.

Signature:

static fromLegacy(result: {
userId: string;
profile: ProfileInfo;
getIdToken?: () => Promise<string>;
signOut?: () => Promise<void>;
}): IdentityApi;

Parameters

Parameter

Type

Description

result

{ userId: string; profile: ProfileInfo; getIdToken?: () => Promise<string>; signOut?: () => Promise<void>; }

**Returns:**

IdentityApi