You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find it a little confusing that I have to do the following in order to set an expiration - am I just missing something?
constclaims={exp: expirationTimestampInSeconds}constjwt=njwt.create(claims,signingKey,'HS256');jwt.setExpiration(claims.exp*1000);// this accepts milliseconds for some reasonreturnjwt.compact();
In create, why not skip the expiration setting part, if the claims already contains the exp claim?
The text was updated successfully, but these errors were encountered:
I find it a little confusing that I have to do the following in order to set an expiration - am I just missing something?
In
create
, why not skip the expiration setting part, if the claims already contains theexp
claim?The text was updated successfully, but these errors were encountered: