Redux-toolkit Authentication & Authorization example

  • JWT Authentication & Authorization Flow for User Login, Register, Logout
  • Project Structure for React Redux JWT Authentication, Router, Axios
  • Working with Redux Actions, Reducers, Store using redux-toolkit
  • Storing JWT in HttpOnly Cookies
  • Creating React Function Components with Hooks & Form Validation
  • React Function Components for accessing protected Resources (Authorization)
  • Dynamic Navigation Bar in React App

For more detail, please visit:

React Redux Authentication & Authorization example with Redux-toolkit

Signup Page:

redux-toolkit-authentication-signup

Login Page:

redux-toolkit-authentication-login

For Authorized account login (Moderator for example), the navigation bar will change:

redux-toolkit-authorization

Working with back-end servers:

Spring Boot + H2

Spring Boot + MySQL/PostgreSQL

Spring Boot + MongoDB

Node Express + MySQL/PostgreSQL

Node Express + MongoDB

Related Posts (without redux-toolkit):

React Redux Login, Logout, Registration example with Hooks

Fullstack (JWT Authentication & Authorization example):

React + Spring Boot

React + Node Express

This project was bootstrapped with Create React App.

Project setup

In the project directory, you can run:

npm install
# or
yarn install

or

Compiles and hot-reloads for development

npm start
# or
yarn start

Open http://localhost:8081 to view it in the browser.

The page will reload if you make edits.

Related Posts

In-depth Introduction to JWT-JSON Web Token

React CRUD example using Hooks

React Pagination using Hooks example

React Hooks File Upload example

React Form Validation with Hooks example

Fullstack with Node Express:

React + Node Express + MySQL

React + Node Express + PostgreSQL

React + Node Express + MongoDB

Fullstack with Spring Boot:

React + Spring Boot + MySQL

React + Spring Boot + PostgreSQL

React + Spring Boot + MongoDB

Fullstack with Django:

React Hooks + Django Rest Framework

Serverless:

React Hooks Firebase Realtime Database: CRUD App

React Hooks Firestore example: CRUD App

Integration (run back-end & front-end on same server/port)

Integrate React with Spring Boot

Integrate React with Node Express

GitHub

View Github