Skip to content

Latest commit

 

History

History

next

Site Auth Demo with Next

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.

Live Demo

Check out the live demo here.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Ensure you have Node.js and npm installed on your local development machine.

Installation

  1. Clone the repository:

    git clone https://github.com/ssahibsingh/site-auth-examples.git
    cd site-auth-examples/next
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

    The app will run on http://localhost:3000.

Environment Variables

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.

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request. Please follow the existing code style and conventions.

Feedback

If you have any feedback, please reach out to here.