learn hapi — Bringing Back JWT Decoding and Authentication

The recent tutorials in this JSON web token series walked you through the process of encrypted tokens. Creating an encrypted JSON web token has the benefit that nobody can access the content except the holder of the secret key or key pair.

In the previous tutorial, you created an encrypted and signed JWT, a nested JWT. You brought back JWT signing and embedded a signed JWT into the payload of an encrypted JWT.

This tutorial shows you how to implement the inverse operations, decrypting and decoding a nested JWT. You’ll also refactor the authentication strategy to let users authenticate again when using nested JWTs.

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.