Skip to content
Open
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: 7 additions & 0 deletions packages/client/src/client/authExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ export function createPrivateKeyJwtAuth(options: {
alg: string;
audience?: string | URL;
lifetimeSeconds?: number;
/**
* Additional custom JWT claims to include in the signed assertion.
*
* These are merged into the JWT payload, but the standard JWT claims
* (`iss`, `sub`, `aud`, `exp`, `iat`, `jti`) are always set explicitly by the SDK and
* will override any overlapping keys provided here.
*/
claims?: Record<string, unknown>;
}): AddClientAuthentication {
return async (_headers, params, url, metadata) => {
Expand Down
Loading