Skip to content

Commit

Permalink
docs: update getValidatedIdTokenClaims description
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 18, 2025
1 parent 1cf0cca commit 15836c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/functions/getValidatedIdTokenClaims.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Support from the community to continue maintaining and improving this module is

**getValidatedIdTokenClaims**(`ref`): [`IDToken`](../interfaces/IDToken.md) \| `undefined`

Returns ID Token claims validated during [processRefreshTokenResponse](processRefreshTokenResponse.md),
[processBackchannelAuthenticationGrantResponse](processBackchannelAuthenticationGrantResponse.md), or [processDeviceCodeResponse](processDeviceCodeResponse.md). To
optionally validate its JWS Signature use [validateApplicationLevelSignature](validateApplicationLevelSignature.md)
Returns ID Token Claims Set from a [TokenEndpointResponse](../interfaces/TokenEndpointResponse.md) processed by e.g.
[processAuthorizationCodeResponse](processAuthorizationCodeResponse.md). To optionally validate the ID Token Signature use
[validateApplicationLevelSignature](validateApplicationLevelSignature.md).

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `ref` | [`TokenEndpointResponse`](../interfaces/TokenEndpointResponse.md) | Value previously resolved from [processRefreshTokenResponse](processRefreshTokenResponse.md), [processBackchannelAuthenticationGrantResponse](processBackchannelAuthenticationGrantResponse.md), or [processDeviceCodeResponse](processDeviceCodeResponse.md). |
| `ref` | [`TokenEndpointResponse`](../interfaces/TokenEndpointResponse.md) | [TokenEndpointResponse](../interfaces/TokenEndpointResponse.md) previously resolved from e.g. [processAuthorizationCodeResponse](processAuthorizationCodeResponse.md) |

## Returns

Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3191,12 +3191,12 @@ const idTokenClaims = new WeakMap<TokenEndpointResponse, IDToken>()
const jwtRefs = new WeakMap<Response, string>()

/**
* Returns ID Token claims validated during {@link processRefreshTokenResponse},
* {@link processBackchannelAuthenticationGrantResponse}, or {@link processDeviceCodeResponse}. To
* optionally validate its JWS Signature use {@link validateApplicationLevelSignature}
* Returns ID Token Claims Set from a {@link TokenEndpointResponse} processed by e.g.
* {@link processAuthorizationCodeResponse}. To optionally validate the ID Token Signature use
* {@link validateApplicationLevelSignature}.
*
* @param ref Value previously resolved from {@link processRefreshTokenResponse},
* {@link processBackchannelAuthenticationGrantResponse}, or {@link processDeviceCodeResponse}.
* @param ref {@link TokenEndpointResponse} previously resolved from e.g.
* {@link processAuthorizationCodeResponse}
*
* @returns JWT Claims Set from an ID Token, or undefined if there is no ID Token in `ref`.
*
Expand Down

0 comments on commit 15836c5

Please sign in to comment.