crash on verifyJWT decoded.payload #1
philipp
commented 2021-08-20 14:17:03 +00:00
Owner
```
E:\projects\sandbox\linkylinky\src\server.js:51
fastify.log.info(`Token verified. User is ${decoded.payload?.user}`);
^
TypeError: Cannot read property 'payload' of undefined
at E:\projects\sandbox\linkylinky\src\server.js:51:61
at Object.module.exports [as verify] (E:\projects\sandbox\linkylinky\node_modules\jsonwebtoken\verify.js:63:12)
at Object.verify (E:\projects\sandbox\linkylinky\node_modules\fastify-jwt\jwt.js:149:11)
at Object.async [as verifyJWT] (E:\projects\sandbox\linkylinky\src\server.js:46:17)
at Auth.nextAuth (E:\projects\sandbox\linkylinky\node_modules\fastify-auth\auth.js:76:28)
at onAuth (E:\projects\sandbox\linkylinky\node_modules\fastify-auth\auth.js:86:23)
at done (E:\projects\sandbox\linkylinky\node_modules\fastify-basic-auth\index.js:45:9)
at Object.basicAuth (E:\projects\sandbox\linkylinky\node_modules\fastify-basic-auth\index.js:20:7)
at Auth.nextAuth (E:\projects\sandbox\linkylinky\node_modules\fastify-auth\auth.js:76:28)
at Object._auth (E:\projects\sandbox\linkylinky\node_modules\fastify-auth\auth.js:50:9)
[nodemon] app crashed - waiting for file changes before starting...
```
philipp
added the 2021-08-20 14:17:17 +00:00
bug
label
niggl
referenced this issue from a commit 2021-08-21 05:36:01 +00:00
Fixed auth error crashing the entire server thanks to fastify handling stuff not the same way that they do in the docs.....
niggl
closed this issue 2021-08-21 05:36:01 +00:00
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
priority:high
priority:low
priority:medium
question
status:blocked
status:doing
status:review_needed
wontfix
bug
duplicate
enhancement
help wanted
invalid
priority:high
priority:low
priority:medium
question
status:blocked
status:doing
status:review_needed
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kauft.es/linkylinky#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?