Skip to content

React Typescript JWT authentication and authorization example with Hooks, React router, Axios - Role based authentication example

Notifications You must be signed in to change notification settings

bezkoder/react-typescript-authentication-example

Repository files navigation

React Typescript Authentication example with Hooks, Axios and Rest API

Build React Typescript Authentication and Authorization example using React Hooks, React Router, Axios and Bootstrap (without Redux):

  • JWT Authentication Flow for User Signup & User Login
  • Project Structure for React Typescript Authentication (without Redux) with React Router & Axios
  • Creating React Components with Form Validation using Formik and Yup
  • React Typescript Components for accessing protected Resources (Authorization)
  • Dynamic Navigation Bar in React Typescript App

For instruction, please visit:

React Typescript Authentication example with Hooks, Axios and Rest API

Signup Page:

react-typescript-authentication-example-signup

Form Validation:

react-typescript-authentication-example-form-validation

Login Page:

react-typescript-authentication-example-login

Profile Page:

react-typescript-authentication-example-profile-page

This React Client works well with following back-end Server:

Spring Boot: JWT Authentication & Authorization with MySQL

Spring Boot: JWT Authentication & Authorization with PostgreSQL

Spring Boot: JWT Authentication & Authorization with MongoDB

Node Express: JWT Authentication & Authorization with MySQL

Node Express: JWT Authentication & Authorization with PostgreSQL

Node Express: WT Authentication & Authorization with MongoDB

Related Posts:

React Hooks Typescript example Project with Axios and Web API

React (Javascript) CRUD example to consume Web API

React Redux CRUD App example with Rest API

React (Hooks) CRUD example to consume Web API

React Table example: CRUD App with react-table v7

Using Material UI instead of Bootstrap:

React Material UI examples with a CRUD Application

More Practice:

React Pagination example

React File Upload example

React JWT Authentication & Authorization example

React + Redux: JWT Authentication & Authorization 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 + Django Rest Framework

Serverless:

React Firebase CRUD App with Realtime Database

React Firestore CRUD App example | Firebase Cloud Firestore

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

Integrate React with Spring Boot

Integrate React with Node Express

This project was bootstrapped with Create React App.

Set port

.env

PORT=8081

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.

Releases

No releases published

Packages

No packages published