learn hapi — Refresh Tokens With JWT Authentication

Authenticating users with JSON web tokens is a convenient strategy. The tokens are self-contained and may include all required information. The server side verifies a token, either trusts its digital signature and proceeds the request handling or declines processing.

Two previous tutorials walk you through the process of generating JSON web tokens and securing API endpoints with JWT authentication.

In this tutorial, you’ll implement a token refresh handling in your application that returns a JWT which is valid for 15 minutes in exchange for a refresh token.

hapi Series Overview

  1. JWT Refresh Token for Multiple Devices (Coming soon)
  2. Check Refresh Token in Authentication Strategy (Coming soon)
  3. Rate Limit Your Refresh Token API Endpoint (Coming soon)


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.