Add Token Authentication to Our Fastify App with fastify-jwt

John Au-Yeung
JavaScript in Plain English
3 min readJan 9, 2021

--

Photo by Harley-Davidson on Unsplash

With the fastify-jwt library, we can add basic authentication to our Fastify app quickly.

In this article, we’ll look at how to use the library to add authentication to our Fastify app.

Installation

We can install the package by running:

npm i fastify-jwt

--

--