Please let me know what I am missing or even I am using the right approach?
The flow I am trying to implement is given
- User login/signup from FE(ReactJS)
- FE get the access token
- On Auth0, use action to create the same user in my database on signup.
- And after login, FE will send make call to my expresJS server
- ExpresJS validates the access token.
What I did to implement this flow.
- Create SPA app on Auth0 dashboard
- Created Machine-to-Machine application on Auth0 dashboard
- Use respective SDKs on FE and BE
What is happening
- User is able to login/signup on FE
- Not able to verify access token on BE