From a1d373170bc376d16d13f6a16d866a2d41fb44d9 Mon Sep 17 00:00:00 2001 From: Andy Caruso Date: Mon, 14 Mar 2022 12:05:18 -0700 Subject: [PATCH] Add API report docs Signed-off-by: Andy Caruso --- plugins/auth-node/api-report.md | 11 +++++++---- plugins/auth-node/src/IdentityClient.ts | 1 - 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/auth-node/api-report.md b/plugins/auth-node/api-report.md index f7fdd6369b..c577ccb353 100644 --- a/plugins/auth-node/api-report.md +++ b/plugins/auth-node/api-report.md @@ -30,9 +30,12 @@ export function getBearerTokenFromAuthorizationHeader( // @public export class IdentityClient { authenticate(token: string | undefined): Promise; - static create(options: { - discovery: PluginEndpointDiscovery; - issuer: string; - }): IdentityClient; + static create( + options: { + discovery: PluginEndpointDiscovery; + issuer: string; + }, + cooldownMs?: number, + ): IdentityClient; } ``` diff --git a/plugins/auth-node/src/IdentityClient.ts b/plugins/auth-node/src/IdentityClient.ts index 560b3b6373..a98330fc71 100644 --- a/plugins/auth-node/src/IdentityClient.ts +++ b/plugins/auth-node/src/IdentityClient.ts @@ -98,7 +98,6 @@ export class IdentityClient { } const user: BackstageIdentityResponse = { - id: decoded.payload.sub, token, identity: { type: 'user',