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

Update Hapi.js demo server.js #274

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Update Hapi.js demo server.js #274

merged 1 commit into from
Oct 19, 2021

Conversation

dankell
Copy link
Contributor

@dankell dankell commented Oct 19, 2021

By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

The current Hapi.js demo is written for Hapi.js 13.5 and is no longer fit for purpose for the newer versions of Hapi (post version 17)
This version implements the same example, but using Hapi 20.2

References

The Hapi-jwt2 project has updated code for Hapi 17+ https://github.com/dwyl/hapi-auth-jwt2
Hapi v20 took over the Community Branch and is the current BSD licenced branch https://hapi.dev/resources/status#hapi

Testing

This version should work in the same way as the previous example.

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

The current Hapi.js demo is written for Hapi.js 13.5 and is no longer fit for purpose for the newer versions of Hapi (post version 17)
This version implements the same example, but using Hapi 20.2
@dankell dankell requested a review from a team as a code owner October 19, 2021 12:28
@adamjmcgrath
Copy link
Contributor

Thanks @dankell!

@adamjmcgrath adamjmcgrath merged commit 44f404c into auth0:master Oct 19, 2021
@dankell dankell deleted the patch-1 branch October 19, 2021 12:58
@dankell
Copy link
Contributor Author

dankell commented Oct 19, 2021

Thanks @dankell!

No problem. I've submitted a PR for the package.json as well.

The readme needs to updated as well to reflect the changes to the code. I can give that a try but it's a bit more detailed than I perhaps understand.,,

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

Successfully merging this pull request may close these issues.

2 participants