I'm new to Auth0 and having real trouble wrapping my head round it. My app is going to be built using React, packaged using Phonegap.
Am I able to use Auth0 with a completely custom UI for creating accounts, logging in etc.?
Ideally my signup flow would be...
- User Signs up using my react form
- Details are sent to my API and then passed to Auth0
- Success message is received from Auth0 and the user is mirrored in my local DB
My ideal login flow would be...
- User fills in email/password on my custom form.
- Details sent either directly to Auth0 or via my API
- Token is sent back and stored in localStorage
Then each request to my API...
- React attaches token to every request in header (actually Axios interceptor does)
- My API is able to verify that the token is valid and not expired
- API performs request.
Not sure how to deal with social logins, claims etc. but that's for another day, basically I want to do everything through the API and not use their lock screen etc. Is this possible?