Node-jsonwebtoken: ability to run in the client

Created on 11 Feb 2017  路  3Comments  路  Source: auth0/node-jsonwebtoken

I wanted to decode the token on the client side.
But due to dependency on joi which has no client side support, I can not use node-jsonwebtoken on the client side.

Please remove dependency on joi library to resolve this.

question

Most helpful comment

I used jwt-decode to accomplish my use case.

All 3 comments

I used jwt-decode to accomplish my use case.

Thanks @ehartford I had this exact same problem, wanted to do a simple check to see if it's first expired before sending requests to the APIs.

Thanks @ehartford for letting us know the solution as well :)

I close the issue, be free to reopen it if needed.

Was this page helpful?
0 / 5 - 0 ratings