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

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

Returns:

IdentityApi