@@ -30,9 +30,12 @@ export function getBearerTokenFromAuthorizationHeader(
|
||||
// @public
|
||||
export class IdentityClient {
|
||||
authenticate(token: string | undefined): Promise<BackstageIdentityResponse>;
|
||||
static create(options: {
|
||||
discovery: PluginEndpointDiscovery;
|
||||
issuer: string;
|
||||
}): IdentityClient;
|
||||
static create(
|
||||
options: {
|
||||
discovery: PluginEndpointDiscovery;
|
||||
issuer: string;
|
||||
},
|
||||
cooldownMs?: number,
|
||||
): IdentityClient;
|
||||
}
|
||||
```
|
||||
|
||||
@@ -98,7 +98,6 @@ export class IdentityClient {
|
||||
}
|
||||
|
||||
const user: BackstageIdentityResponse = {
|
||||
id: decoded.payload.sub,
|
||||
token,
|
||||
identity: {
|
||||
type: 'user',
|
||||
|
||||
Reference in New Issue
Block a user