barfs when iss does not exist in verified token #2

Closed
opened 2021-06-09 00:02:22 +00:00 by coolaj86 · 0 comments
Owner

When the decoded token (jws) doesn't have an iss, it should return a verification error, not this:

TypeError: Cannot read property 'replace' of undefined
    at normalizeIss (/Users/aj/Projects/Root/auth3000/node_modules/keyfetch/keyfetch.js:203:14)
    at /Users/aj/Projects/Root/auth3000/node_modules/keyfetch/keyfetch.js:154:33
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
When the decoded token (jws) doesn't have an `iss`, it should return a verification error, not this: ```txt TypeError: Cannot read property 'replace' of undefined at normalizeIss (/Users/aj/Projects/Root/auth3000/node_modules/keyfetch/keyfetch.js:203:14) at /Users/aj/Projects/Root/auth3000/node_modules/keyfetch/keyfetch.js:154:33 at processTicksAndRejections (internal/process/task_queues.js:95:5) ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/keyfetch.js-ARCHIVED#2
No description provided.