This repository includes two components:
- SDK: A custom SDK for the "Login with DIMO" button.
- Example React App: A React application demonstrating the use of the SDK for user authentication.
The example app assumes that the DIMO auth flow (https://github.com/DIMO-Network/dimo-login) is running on http://localhost:3000. Ensure that the auth service is up and running before starting the example app to enable the full login flow.
The project currently uses a file import setup for the SDK in the example app. To get everything running, follow these steps:
First, navigate to the sdk
directory and start a live build of the SDK using the following command:
npm i
and then
npm run watch
Once the SDK is live-building, navigate to the example-dimo-auth directory and run the React app:
npm i
and then
npm start
This will start the example app on http://localhost:3001.
The SDK enables the "Login with DIMO" button for user authentication. The example app demonstrates how to integrate the SDK into a React project.