Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tokenExpiration expects seconds, not microseconds #33

Open
joecullin opened this issue Apr 24, 2020 · 0 comments
Open

tokenExpiration expects seconds, not microseconds #33

joecullin opened this issue Apr 24, 2020 · 0 comments

Comments

@joecullin
Copy link

The README shows an example tokenExpiration value of 3600000, with a comment saying "1 hour."

It's sending that value to https://github.com/auth0/node-jsonwebtoken as the "maxAge" parameter. According to that module's docs (and to my own test of this module), if you pass an integer it will interpret the value as seconds.

So setting tokenExpiration to 30 will set a 30 minute maximum on the auth token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant