Skip to content

Latest commit

 

History

History

CivicAuth ReactJS example App

A reference implementation of a simple ReactJS integration with the Civic Auth SDK (@civic/auth).

This is a Vite project.

🚀 Prerequisites

  • Yarn: Ensure you have Yarn installed.
  • Civic Auth Account: Obtain your clientId from the Civic Auth Dashboard.

🛠 Installation

Install Dependencies using Yarn:

yarn install

Add VITE_CLIENT_ID to your .env file

rename or copy the .env.example file and set the VITE_CLIENT_ID to the clientId from the Civic Auth Dashboard

🏃 Running the App

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.