This template allows you to instantly deploy an app with Descope Authentication to Netlify. This is great for Next.js developers who want to quickly create deployable applications with advanced auth methods. ⚡
Follow these steps to clone the repository and start using the app.
- An account on Descope.
Start by cloning the repository to your local machine:
git clone https://github.com/descope-sample-apps/descope-netlify-template
cd descope-netlify-template
Navigate to the project directory and install the necessary dependencies:
npm i
npm install netlify-cli -g
The Netlify initialization script will walk you through how to connect to a new or existing Netlify project.
netlify init
or, connect to Netlify by clicking the button below:
Before you run the app, make sure to configure the following:
- Environment Variables: Set up your environment variables in a
.env.local
file if running locally, or on the Netlify project dashboard under site configuration -> Environment variables if deploying through Netlify. You'll need to include your Descope project settings:
####### Descope ENV Variables
NEXT_PUBLIC_DESCOPE_PROJECT_ID="" // Descope Project ID
NEXT_PUBLIC_DESCOPE_FLOW_ID="" // Descope flow to use on Sign In Page
Once you've configured your app, you're ready to run it:
npm run dev
# or
yarn dev
This command starts the Next.js development server, making your app accessible at http://localhost:3000.
If you encounter any issues or have questions, consult the Netlify and Descope documentation, or reach out to our support for assistance.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have suggestions or improvements.
This sample app is open-source and available under the MIT License. See the LICENSE file for more details.