Welcome to Descope's Google One Tap Sample App, built with NextJS and Descope-powered Google One Tap.
- Clone the repository:
git clone https://github.com/descope-sample-apps/onetap.git
- Install dependencies:
npm install
- Setup environment variables:
NEXT_PUBLIC_DESCOPE_PROJECT_ID="YOUR_DESCOPE_PROJECT_ID" // Required
Use .env.example and rename to .env.local after adding the environment variables.
NOTE: NEXT_PUBLIC_DESCOPE_PROJECT_ID is your Descope Project ID which you can find under Project Settings, in the console.
- Set up a Google One Tap specific Custom Provider in the Descope console (Dashboard -> Authentication Methods -> Social Login -> + Custom Provider) and name it
google-implicit.
To start the application, run:
npm run dev
Navigate to http://localhost:3000/ in your browser.
This project is licensed under the MIT License - see the LICENSE file for details.
