Skip to content

Commit

Permalink
docs: add note about createRemoteJWKSet to get key interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Apr 1, 2021
1 parent cb856c8 commit 8282c28
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jws/compact/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import type {
/**
* Interface for Compact JWS Verification dynamic key resolution.
* No token components have been verified at the time of this function call.
*
* See [createRemoteJWKSet](../functions/jwks_remote.createremotejwkset.md#function-createremotejwkset)
* to verify using a remote JSON Web Key Set.
*/
export interface CompactVerifyGetKey
extends GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput> {}
Expand Down
3 changes: 3 additions & 0 deletions src/jws/flattened/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const checkAlgOption = validateAlgorithms.bind(undefined, 'algorithms')
/**
* Interface for Flattened JWS Verification dynamic key resolution.
* No token components have been verified at the time of this function call.
*
* See [createRemoteJWKSet](../functions/jwks_remote.createremotejwkset.md#function-createremotejwkset)
* to verify using a remote JSON Web Key Set.
*/
export interface FlattenedVerifyGetKey
extends GetKeyFunction<JWSHeaderParameters | undefined, FlattenedJWSInput> {}
Expand Down
3 changes: 3 additions & 0 deletions src/jws/general/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import isObject from '../../lib/is_object.js'
/**
* Interface for General JWS Verification dynamic key resolution.
* No token components have been verified at the time of this function call.
*
* See [createRemoteJWKSet](../functions/jwks_remote.createremotejwkset.md#function-createremotejwkset)
* to verify using a remote JSON Web Key Set.
*/
export interface GeneralVerifyGetKey
extends GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput> {}
Expand Down
3 changes: 3 additions & 0 deletions src/jwt/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ interface JWTVerifyOptions extends VerifyOptions, JWTClaimVerificationOptions {}
/**
* Interface for JWT Verification dynamic key resolution.
* No token components have been verified at the time of this function call.
*
* See [createRemoteJWKSet](../functions/jwks_remote.createremotejwkset.md#function-createremotejwkset)
* to verify using a remote JSON Web Key Set.
*/
export interface JWTVerifyGetKey extends GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput> {}

Expand Down

0 comments on commit 8282c28

Please sign in to comment.