In this article, you'll learn how to implement JWT Authentication with an Access and a Refresh token using Node.js, TypeScript, MongoDB, Redis, and Docker.
- JWT Refresh Token with Node.js, TypeScript, and MongoDB Overview
- JWT Refresh Token Implementation Flow
- Generate Public and Private Keys for the Token
- Update Environment Variables in Config
- Update the Sign and Verify JWT Utility Functions
- Update the Sign Token Service Function
- Update the Login Controller
- Create a Controller to Refresh Access Token
- Create a Controller to Logout User
- Update the Authentication Routes
- Update app.ts
Read the entire article here: https://codevoweb.com/react-node-access-refresh-tokens-authentication/
Articles in this series:
Node.js + TypeScript + MongoDB: JWT Authentication
Node.js + TypeScript + MongoDB: JWT Refresh Token
Google OAuth Authentication with React.js and Node.js (No Passport)
GitHub OAuth Authentication React.js and Node.js(No Passport)