praveenweb / react-admin-hasura-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-admin Auth0 Sample

This is the application built while following the tutorial.

How to run

After having cloned the react-admin-auth0 repository, run the following commands:

yarn install
yarn start

Auth0 configuration for testing

Allowed Callback URLs: http://localhost:3000/login
Allowed Logout URLs: http://localhost:3000/
Allowed Web Origins: http://localhost:3000/
Allowed Origins (CORS): http://localhost:3000/

Required environment variables

export AUTH0_DOMAIN=""
export AUTH0_CLIENT_ID=""
export AUTH0_REDIRECT_URI="http://localhost:3000/login"

References

TODO:

  • add example of getting user details
  • add example of authorizing api requests

About


Languages

Language:JavaScript 87.2%Language:HTML 11.2%Language:Shell 1.1%Language:CSS 0.5%