diff --git a/dist/b2b/idp.js b/dist/b2b/idp.js index 0df7545a..7ba06cbe 100644 --- a/dist/b2b/idp.js +++ b/dist/b2b/idp.js @@ -113,7 +113,8 @@ class IDP { not_before: _nbf, token_type: _token_type, organization, - custom_claims: customClaims + custom_claims: customClaims, + client_id: _client_id }; } async introspectTokenLocal(tokenJWT, options) { @@ -143,6 +144,7 @@ class IDP { nbf: _nbf, sub: _sub, scope: _scope, + client_id: _client_id, "https://stytch.com/organization": _organization_claim, /* eslint-enable @typescript-eslint/no-unused-vars */ ...custom_claims @@ -170,7 +172,8 @@ class IDP { scope: _scope, token_type: "access_token", organization, - custom_claims + custom_claims, + client_id: _client_id }; } // ENDMANUAL(introspectTokenNetwork) diff --git a/dist/b2c/idp.js b/dist/b2c/idp.js index 68b70b90..6106ab74 100644 --- a/dist/b2c/idp.js +++ b/dist/b2c/idp.js @@ -105,7 +105,8 @@ class IDP { issuer: _iss, not_before: _nbf, custom_claims: customClaims, - token_type: _token_type + token_type: _token_type, + client_id: _client_id }; } async introspectTokenLocal(tokenJWT, options) { @@ -135,6 +136,7 @@ class IDP { nbf: _nbf, sub: _sub, scope: _scope, + client_id: _client_id, /* eslint-enable @typescript-eslint/no-unused-vars */ ...custom_claims } = payload; @@ -155,7 +157,8 @@ class IDP { not_before: _nbf, scope: _scope, token_type: "access_token", - custom_claims + custom_claims, + client_id: _client_id }; } // ENDMANUAL(introspectTokenNetwork) diff --git a/lib/b2b/idp.ts b/lib/b2b/idp.ts index 8cc724b5..63812878 100644 --- a/lib/b2b/idp.ts +++ b/lib/b2b/idp.ts @@ -79,6 +79,7 @@ export interface B2BIntrospectTokenClaims { not_before: number; token_type: string; organization: OrganizationClaim; + client_id: string; } // ENDMANUAL(IntrospectToken) @@ -202,6 +203,7 @@ export class IDP { token_type: _token_type as string, organization, custom_claims: customClaims, + client_id: _client_id as string, }; } @@ -239,6 +241,7 @@ export class IDP { nbf: _nbf, sub: _sub, scope: _scope, + client_id: _client_id, "https://stytch.com/organization": _organization_claim, /* eslint-enable @typescript-eslint/no-unused-vars */ ...custom_claims @@ -273,6 +276,7 @@ export class IDP { token_type: "access_token", organization, custom_claims, + client_id: _client_id as string, }; } // ENDMANUAL(introspectTokenNetwork) diff --git a/lib/b2c/idp.ts b/lib/b2c/idp.ts index 319e343d..d776b2f0 100644 --- a/lib/b2c/idp.ts +++ b/lib/b2c/idp.ts @@ -72,6 +72,7 @@ export interface IntrospectTokenClaims { issuer: string; not_before: number; token_type: string; + client_id: string; } // ENDMANUAL(IntrospectToken) @@ -183,6 +184,7 @@ export class IDP { not_before: _nbf as number, custom_claims: customClaims, token_type: _token_type as string, + client_id: _client_id as string, }; } @@ -220,6 +222,7 @@ export class IDP { nbf: _nbf, sub: _sub, scope: _scope, + client_id: _client_id, /* eslint-enable @typescript-eslint/no-unused-vars */ ...custom_claims } = payload; @@ -243,6 +246,7 @@ export class IDP { scope: _scope as string, token_type: "access_token", custom_claims, + client_id: _client_id as string, }; } // ENDMANUAL(introspectTokenNetwork) diff --git a/package.json b/package.json index cd26a9f2..044ed5e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stytch", - "version": "14.2.0", + "version": "14.3.0", "description": "A wrapper for the Stytch API", "types": "./types/lib/index.d.ts", "main": "./dist/index.js", diff --git a/types/lib/b2b/idp.d.ts b/types/lib/b2b/idp.d.ts index 421b6270..45f0b045 100644 --- a/types/lib/b2b/idp.d.ts +++ b/types/lib/b2b/idp.d.ts @@ -54,6 +54,7 @@ export interface B2BIntrospectTokenClaims { not_before: number; token_type: string; organization: OrganizationClaim; + client_id: string; } export declare class IDP { private fetchConfig; diff --git a/types/lib/b2c/idp.d.ts b/types/lib/b2c/idp.d.ts index 00208405..2a2004e2 100644 --- a/types/lib/b2c/idp.d.ts +++ b/types/lib/b2c/idp.d.ts @@ -48,6 +48,7 @@ export interface IntrospectTokenClaims { issuer: string; not_before: number; token_type: string; + client_id: string; } export declare class IDP { private fetchConfig;