Articles tagged in: Node.js



learn hapi — JWT Authentication in Swagger API Documentation

In the previous tutorial, you implemented JWT authentication and required the related jwt strategy on API endpoints. This change affects your Swagger API documentation because users can’t simply run requests against the endpoints from within the Swagger UI anymore. In this tutorial, you’ll configure Swagger to support API …

Continue Reading

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. …

Continue Reading

learn hapi — API Login With Username and Password to Generate a JWT

Building an API usually involves user accounts and personal data. Users should see their personalized dashboard or newsfeed. This requires API endpoints that identify the requesting user. The most straightforward approach: API endpoints that require authentication. The login with username and password is the first part of API authentication. The …

Continue Reading
Page 1 of 17

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous