Skip to content
Myr

refactor(jwks): mark allowedAlgorithms, so the user can pass a `const` array (#4641)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Niklas Mollenhauer · committed by GitHub · parent 5d4e6aa · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/utils/jwt/jwt.ts+1 added-1 removed
192 unmodified lines
193 options: {194 keys?: HonoJsonWebKey[]195 jwks_uri?: string196 verification?: VerifyOptions197 allowedAlgorithms: AsymmetricAlgorithm[]197 allowedAlgorithms: readonly AsymmetricAlgorithm[]198 },199 init?: RequestInit200): Promise<JWTPayload> => {201 const verifyOpts = options.verification || {}
79 unmodified lines
modified:src/utils/jwt/types.ts+1 added-1 removed