This project adheres to Semantic Versioning.
Every release, along with the migration instructions (where necessary),
is documented on the Github Releases page.
If anything is unclear in the project documentation, please raise an issue: https://github.com/dwyl/hapi-auth-jwt2/issues (we are here to help!)
Update version of jsonwebtoken
dependency to latest
to avoid security issues.
See: #374 thanks @AntoineAA
More detail in: #373 thanks Snyk.
Version 10.0.0 introduces a breaking change
where the returned payload
Object
now contains an artifacts
Object
of the form:
return {
payload: {
credentials: credentials
artifacts: {
token,
decoded,
},
},
};
Previously the value of artifacts
was just the token
.
Anyone using version 9.0.0
will need to make the minor update
to use payload.artifacts.token
as opposed to payload.artifacts
.
Version 9.0.0 is compatible with Hapi 19.x.x