Skip to content
Myr

fix(middleware/jwt): fix incorrect assumption in jwt impl (#2775)

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

* breaking change: fix incorrect assumption in jwt impl * denofiy

authored by Evan Boehs · committed by GitHub · parent d774711 · 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:deno_dist/middleware/jwt/index.ts+1 added-1 removed
modified:src/middleware/jwt/index.ts+1 added-1 removed
16 unmodified lines
17 secret: string18 cookie?: string19 alg?: SignatureAlgorithm20}): MiddlewareHandler => {21 if (!options) {21 if (!options || !options.secret) {22 throw new Error('JWT auth middleware requires options for "secret')23 }2425 if (!crypto.subtle || !crypto.subtle.importKey) {
81 unmodified lines