learn hapi — JWT Authentication and Private API Endpoints

The previous tutorial laid the foundation for API authentication with username and password. You created a dedicated API authentication plugin which registers login route to authenticate with username and password to the hapi API server.

A successful login generated an API authentication token which should be used for API requests.

That’s what you’ll do in this tutorial: make the switch for all endpoints from publicly available to require JSON web token (JWT) authentication to access the endpoints.

hapi Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.