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 9cbe38a commit 049a1e7
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 @@ -180,7 +180,7 @@ async function fetchKey({
}: FetchKeyOptions): Promise<string> {
const decodedToken = decode(token, { complete: true });
if (decodedToken?.header?.kid == null) {
throw unauthorizedError(`Unauthenticated`);
throw unauthorizedError(`Failed to decode authentication token. Missing key id.`);
}

if (shouldRefreshCache) {
Expand Down

0 comments on commit 049a1e7

Please sign in to comment.