hapi-auth-jwt2: Not compatible with Hapi 17.*
Hi,
It is not working with Hapi 17.*.
At least 'name' is missing, but may be some more issues.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 17
- Comments: 16 (1 by maintainers)
Commits related to this issue
- adds /* istanbul ignore else */ for error-handling branches where no alternative execution is required for #248 — committed to dwyl/hapi-auth-jwt2 by nelsonic 6 years ago
- Major Update to Hapi v.17 (Breaking Changes to use "async function") see: https://github.com/hapijs/hapi/issues/3658 (release notes) ref: #248 thanks to @salzhrani for https://github.com/dwyl/hapi-aut... — committed to dwyl/hapi-auth-jwt2 by nelsonic 6 years ago
@nelsonic v17 has been released now 😄
Any news regarding the v17? @nelsonic
It needs to be upgraded to support v17.
Anything new regarding the v17?
@murbanowicz thank you for opening this issue. Hapi V.17 has not been released yet. There is a “Release Candidate” so people can
tryit. We are waiting for the v.17 Release Notes: https://github.com/hapijs/hapi/issues/3658 As soon as the “Upgrade Path” notes are finalised we will do the work to upgrade our Plugin(s) and release a new major version to NPM.This is not how it should be. The changes should be merged so npm will have it already
On 10 Jan 2018 09:30, “Salvatore Tedde” notifications@github.com wrote:
Hi @murbanowicz I’ve downgraded and tested the deps one by one and I’ve managed to make it work. I will comment here for anyone with the same issue after upgrading hapi.js and hapi.js plugins.
The problem seens to be, the newer versions of hapi.js and newers plugins don’t work properly with es2018 code style.
Its not working with me. “hapi”: “^17.5.4”, “hapi-auth-jwt2”: “^8.1.0”,
Upgrading from 16.x to 17.2 caused following Hapi AssertionError:
Seems like Hapi 17 is requiring scheme registration with server.auth.scheme function: https://github.com/hapijs/hapi/blob/master/API.md#authentication-scheme
Have someone got it working?