import { JsonPrimitive } from '@backstage/types'; /** * The data extracted from an IAP token. * * @public */ export type GcpIapTokenInfo = { /** * The unique, stable identifier for the user. */ sub: string; /** * User email address. */ email: string; /** * Other fields. */ [key: string]: JsonPrimitive; }; /** * The result of the initial auth challenge. This is the input to the auth * callbacks. * * @public */ export type GcpIapResult = { /** * The data extracted from the IAP token header. */ iapToken: GcpIapTokenInfo; };