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?
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.
Most helpful comment
For those who stumble upon this, we should use
expiresInfrom this point on.