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

adding a default jwt uuid. Refs #513 #539

merged 2 commits into from Oct 23, 2017


None yet
2 participants
Copy link

ekryski commented Jul 5, 2017


We already supported passing your own jwtid by setting hook.params.jwt.jwtid = myId before an authentication create call or by explicitly calling:

const options = {
  jwt: {
    jwtid: myId
app.passport.createJWT(payload, options).then(...

This PR makes it so that by default a uuid is assigned to the jwtid value. This sets us up better so that we can whitelist/blacklist tokens.


daffl approved these changes Jul 7, 2017

@ekryski ekryski merged commit 0885ac2 into master Oct 23, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed

@ekryski ekryski deleted the jwtid branch Oct 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.