ProfileTransform
Home > @backstage/plugin-auth-node
> ProfileTransform
Describes the function that transforms the result of a successful authentication into a ProfileInfo object.
This function may optionally throw an error in order to reject authentication.
Signature:
export type ProfileTransform<TResult> = (result: TResult, context: AuthResolverContext) => Promise<{
profile: ProfileInfo;
}>;
References: AuthResolverContext, ProfileInfo