Articles tagged in: Futureflix

learn hapi — How to Revoke a JWT

JSON web tokens (JWT) are a convenient way to authenticate users on your platform. The simplest version of handling JWT authentication looks like this: creating a token by signing it with a secret key that is only known to your application. Once created, you send off the compact form of …

Continue Reading

learn hapi — Create a JWT Utility

When using JSON web tokens in your application, you’ll find JWT related implementations in different places. For example, creating a new JWT is part of a login route handler. Authenticating an incoming JWT takes place in an authentication strategy. Refreshing a JWT, JWT logout, or token blacklisting are use …

Continue Reading

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 …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.