kriasoft / graphql-starter-kit

💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI.
https://graphqlstart.com
MIT License
3.88k stars 553 forks source link

refactor: Replace `jsonwebtoken` with `jose` #345

Closed koistya closed 2 years ago

koistya commented 2 years ago

BREAKING CHANGE:

If you're using createIdToken, verifyIdToToken helper methods, you need to add await:

// BEFORE
createIdToken(...)
verifyIdToken(...)
createState(...)
verifyState(...)

// AFTER
await createIdToken(...)
await verifyIdToken(...)
await createState(...)
await verifyState(...)