Skip to content

Commit

Permalink
fix(middleware/jwt): typo (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
euijinkk committed May 25, 2024
1 parent f7db0b1 commit 3d21e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/middleware/jwt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const jwt = (options: {
alg?: SignatureAlgorithm
}): MiddlewareHandler => {
if (!options || !options.secret) {
throw new Error('JWT auth middleware requires options for "secret')
throw new Error('JWT auth middleware requires options for "secret"')
}

if (!crypto.subtle || !crypto.subtle.importKey) {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/jwt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const jwt = (options: {
alg?: SignatureAlgorithm
}): MiddlewareHandler => {
if (!options || !options.secret) {
throw new Error('JWT auth middleware requires options for "secret')
throw new Error('JWT auth middleware requires options for "secret"')
}

if (!crypto.subtle || !crypto.subtle.importKey) {
Expand Down

0 comments on commit 3d21e8c

Please sign in to comment.