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.
- clone the repository
- install server dependancies
yarn install
- install client dependancies
yarn install
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"
};
yarn start
See the docs folder for notes about building the server and app.