I want to create sign up and login screen for react native android app. I have created email and password for sign up screen and for login the user clicks on login button which navigates him to browser tab there user enters email and password.
I am using 2 requests
- GET -> for login -> https://auth0.com/docs/api/authentication#login
API Endpoint: https://YOUR_AUTH0_DOMAIN/authorize?response_type=token&client_id=client_id&redirect_uri=url
- POST -> for sign up -> https://auth0.com/docs/api/authentication#signup
API Endpoint: https://YOUR_AUTH0_DOMAIN/dbconnections/signup
In postman Body should be:
"email":"firstname.lastname@example.org", "password":"xyz123", "connection":"YOUR_CONNECTION", "client_id":"YOUR_CLIENT_ID"
I am not getting required response from above API endpoints. How can I implement sign up and login screen using auth0.