How to implement Login with Logify in React



Step 1: Get a domain key from logify
Follow this article to get your Domain Key if you do not already have it.

Step 2: Setup React Project
Create new folder with name react-logify-basic

Open react-logify-basic in visual studio code

Run git clone https://github.com/logify-id/react-logify-basic.git . in terminal to clone the repository. Github Repo

Install all dependencies with npm i

Create .env file

Paste REACT_APP_LOGIFY_DOMAINKEY = YOUR_DOMAIN_KEY

Step 3: Run the Project

Start your project with npm start 

If I click on the login button, I can see login screen 

After login, I can see my details.