This project demonstrates how to integrate Site Auth
using the npm package site-auth-react
in a Next.js application. The demo includes complete configuration of site-auth-react
package in your Next App.
Check out the live demo here.
To get a local copy up and running, follow these simple steps.
Ensure you have Node.js and npm installed on your local development machine.
-
Clone the repository:
git clone https://github.com/ssahibsingh/site-auth-examples.git cd site-auth-examples/next
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
The app will run on
http://localhost:3000
.
Create a .env
file in the root of the project and add the following environment variables:
NEXT_PUBLIC_SITE_AUTH_WEBSITE_ID="YOUR_SITE_AUTH_WEBSITE_ID"
Get your
SITE_AUTH_WEBSITE_ID
from the Site Auth Dashboard.
Contributions are welcome! Fork the repository, make your changes, and submit a pull request. Please follow the existing code style and conventions.
If you have any feedback, please reach out to here.