This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
API exercise jwt payload should be a plain object #273
Comments
samuelchvez
changed the title
API exercise json payload should be a plain object
API exercise jwt payload should be a plain object
Dec 13, 2020
Hi @samuelchvez |
Relates to #50 and https://knowledge.udacity.com/questions/76262 |
Fixed in this commit 916b6f4 |
This was referenced May 12, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Found that jwt library expects the payload to be a plain object. As seen in the course, we send directly the sequelize model instance, which is not a plain object. To solve it, I used the method
short()
inside thegenerateJWT
method:The text was updated successfully, but these errors were encountered: