Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions dist/b2b/idp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions dist/b2c/idp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/b2b/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface B2BIntrospectTokenClaims {
not_before: number;
token_type: string;
organization: OrganizationClaim;
client_id: string;
}

// ENDMANUAL(IntrospectToken)
Expand Down Expand Up @@ -202,6 +203,7 @@ export class IDP {
token_type: _token_type as string,
organization,
custom_claims: customClaims,
client_id: _client_id as string,
};
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -273,6 +276,7 @@ export class IDP {
token_type: "access_token",
organization,
custom_claims,
client_id: _client_id as string,
};
}
// ENDMANUAL(introspectTokenNetwork)
Expand Down
4 changes: 4 additions & 0 deletions lib/b2c/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface IntrospectTokenClaims {
issuer: string;
not_before: number;
token_type: string;
client_id: string;
}

// ENDMANUAL(IntrospectToken)
Expand Down Expand Up @@ -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,
};
}

Expand Down Expand Up @@ -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;
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions types/lib/b2b/idp.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions types/lib/b2c/idp.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading