prisma-archive / graphcool-templates

📗 Collection of Graphcool Templates
MIT License
361 stars 100 forks source link

jwt.decode fails on new id_tokens #138

Open meiriko opened 6 years ago

meiriko commented 6 years ago

The example in the template fails. After adding the json: true flag, it works properly. This line should be changed to:

jwt.decode(token, {complete: true, json: true})

https://github.com/graphcool/templates/blob/4515dcd930743c436248c053624fc74dd949a0d5/auth/auth0/src/auth0Authentication.js#L10