Node-jsonwebtoken: jti instead of a jwtid

Created on 17 Feb 2019  路  2Comments  路  Source: auth0/node-jsonwebtoken

There should be no jti instead of a jwtid?

jwt.verify(token, cert, { audience: 'urn:foo', issuer: 'urn:issuer', jwtid: 'jwtid' }, function(err, decoded) {

According to https://tools.ietf.org/html/rfc7519#section-4.1.7 JWT ID should be named jti, or am I wrong?

Most helpful comment

It is named jwtid only in the options, to make it more readable, same thing happens there with audience instead of aud or issuer instead of iss.

All 2 comments

It is named jwtid only in the options, to make it more readable, same thing happens there with audience instead of aud or issuer instead of iss.

Ok, thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samholmes picture samholmes  路  5Comments

BarukhOr picture BarukhOr  路  4Comments

glowlabs picture glowlabs  路  3Comments

mathellsmelo picture mathellsmelo  路  3Comments

dwelle picture dwelle  路  3Comments