Auth0 Home Blog Docs

How to create sign up and login screen for react native?

api
login
react-native

#1

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

  1. 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

  1. 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":"xyzuser@gmail.com",
"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.