Skip to content

wpcodevo/JWT_Authentication_React

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js + TypeScript + MongoDB: JWT Refresh Token

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.

Node.js + TypeScript + MongoDB: JWT Refresh Token

Topics Covered

  • 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:

1. Node.js + TypeScript + MongoDB: JWT Authentication

Node.js + TypeScript + MongoDB: JWT Authentication

2. Node.js + TypeScript + MongoDB: JWT Refresh Token

Node.js + TypeScript + MongoDB: JWT Refresh Token

3. Google OAuth Authentication with React.js and Node.js (No Passport)

Google OAuth Authentication with React.js and Node.js (No Passport)

4. GitHub OAuth Authentication React.js and Node.js(No Passport)

GitHub OAuth Authentication React.js and Node.js(No Passport)

About

JWT Authentication and Authorization with React, RTK Query, Material UI, React Hook Form and Zod.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages