Skip to content

How to set up 0Auth authentication using JWT tokens and Auth0 as a service for an ExpressJS server and ReactJS Client

Notifications You must be signed in to change notification settings

smerth/securing-react-applications-with-auth0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React - Securing Applications with Auth0

This project demonstrates how to set up 0Auth authentication with the Auth0 service. The app is comprised of an ExpressJS server which makes use of JWT to manage authentication tokens. The client implements Auth0 session authentication.

App Screenshot

Setup and installation

App and dependancies

  • clone the repository
  • install server dependancies
yarn install
  • install client dependancies
yarn install

Secrets

To authenticate with Auth0 you will need to set up an account. You will need to copy you credentials into the Auth folder

@ src/Auth/ create file:

touch auth0-variables.js

Add a variables object: @ src/Auth/auth0-variables

export const AUTH_CONFIG = {
  domain: "YOUR-DOMAIN",
  clientId: "YOUR-CLIENT-ID",
  callbackUrl: "YOUR-CALLBACK-URL",
  apiUrk: "YOUR-API-URK"
};

Run Server and Client

yarn start

Build Notes

See the docs folder for notes about building the server and app.

About

How to set up 0Auth authentication using JWT tokens and Auth0 as a service for an ExpressJS server and ReactJS Client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published