Node-jsonwebtoken: Missing documentation for expiresInMinutes and expiresInSeconds

Created on 6 May 2015  路  5Comments  路  Source: auth0/node-jsonwebtoken

Documentation should explain what possible values are valid for these options. Should the expiresInMinutes be the number of minutes from unix time or number of minutes from token generation?

Most helpful comment

For those who stumble upon this, we should use expiresIn from this point on.

All 5 comments

The name implies it is from token generation: [token] expires in x minutes

Yes, it is from token generation and I don't like these parameters.

Please make it only one option. As a library author it's a big pain when exposing the config to users because it's confusing which one will have effect.. One option should be enough.

These parameters are deprecated and will be removed on next major version.

For those who stumble upon this, we should use expiresIn from this point on.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndreOneti picture AndreOneti  路  3Comments

p-brighenti picture p-brighenti  路  4Comments

prevostc picture prevostc  路  4Comments

salali picture salali  路  5Comments

mathellsmelo picture mathellsmelo  路  3Comments