Hello! I am currently building a React website that implements the Auth0-SPA sdk to authenticate. I would like to make my own personal sign-up page so the login experience is more fluid.
Now I wanted to do this by using the Authentication API, but I realized that since I’m using the SPA sdk I’m not sure how I would be able to check if the user is signed in later on in the app (using this tutorial).
I’m looking for a solution where I can continue using the SPA sdk throughout my React app, while being able to authenticate myself (I was expecting to make a POST API call, but if there are only other ways that is fine).
- Entire React app is wrapped in the Auth0Provider.
- User is not authenticated, this is checked with the SPA sdk
- User then logs in through my login page (hopefully I can keep using the SPA sdk for this, but it isn’t seeming like that. Maybe an Auth0 API call, and then the call returns something I can then somehow send to the SPA sdk?).
- User navigates throughout website and I can check for authentication (as long as user info, loading, etc…) still using the SPA sdk.