Auth0 Hapi API Samples
These samples demonstrate how to create an API with Hapi.js which authenticates incoming requests. The request authentication is done by verifying the signature and claims in a JSON Web Token (JWT) signed by Auth0.
These samples do not demonstrate how to sign a JWT but rather assume that a user has already been authenticated by Auth0 and holds an access token for API access. For information on how to use Auth0 to authenticate users, see the docs.