A reference implementation of a simple ReactJS integration with the Civic Auth SDK (@civic/auth).
This is a Vite project.
- Yarn: Ensure you have Yarn installed.
- Civic Auth Account: Obtain your clientId from the Civic Auth Dashboard.
Install Dependencies using Yarn:
yarn install
rename or copy the .env.example file and set the VITE_CLIENT_ID to the clientId from the Civic Auth Dashboard
Start the app using Yarn:
yarn dev
The server will start on http://localhost:3000
.
Feel free to reach out to the Civic Support Team for any questions or assistance with integration.