Skip to content

Commit

Permalink
docs: add notes about algorithm allow list defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Apr 1, 2021
1 parent 8282c28 commit 0f990a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ export interface DecryptOptions extends CritOption {

/**
* A list of accepted JWE "enc" (Encryption Algorithm) Header Parameter values.
* By default all "enc" (Encryption Algorithm) values applicable for the used
* key/secret are allowed.
*/
contentEncryptionAlgorithms?: string[]

Expand Down Expand Up @@ -515,6 +517,8 @@ export interface JWTClaimVerificationOptions {
export interface VerifyOptions extends CritOption {
/**
* A list of accepted JWS "alg" (Algorithm) Header Parameter values.
* By default all "alg" (Algorithm) values applicable for the used
* key/secret are allowed. Note: "none" is never accepted.
*/
algorithms?: string[]
}
Expand Down

0 comments on commit 0f990a4

Please sign in to comment.