Identify Users with JWT

Share this video with your friends

Send Tweet

Now that we have our encoded JWT we need to be able to decode it!

The jsonwebtoken library makes this very easy. All we have to do is pass the jwt and our token to a decoder function. In that function definition we pass the arguments into the verify method and return the result.