Skip to content

Commit

Permalink
fix: Revert unauthorized rejection error text
Browse files Browse the repository at this point in the history
  • Loading branch information
peterklingelhofer authored Jan 29, 2024
1 parent 049a1e7 commit 4200529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugins/jwt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function verify(
{ ...options, algorithms: options?.algorithms ?? ['RS256'] },
(err, result) => {
if (err) {
reject(unauthorizedError('Unauthenticated'));
reject(unauthorizedError('Failed to decode authentication token. Verification failed.'));
} else {
resolve(result as JwtPayload);
}
Expand Down

0 comments on commit 4200529

Please sign in to comment.