Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

adding a default jwt uuid. Refs #513 #539

Merged
merged 2 commits into from
Oct 23, 2017
Merged

adding a default jwt uuid. Refs #513 #539

merged 2 commits into from
Oct 23, 2017

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Jul 5, 2017

Summary

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.

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

Successfully merging this pull request may close these issues.

2 participants