Skip to content

descope-sample-apps/onetap

Repository files navigation

google-one-tap

Descope's Google One Tap Sample App

Welcome to Descope's Google One Tap Sample App, built with NextJS and Descope-powered Google One Tap.

Installation

  1. Clone the repository:
git clone https://github.com/descope-sample-apps/onetap.git
  1. Install dependencies:
npm install
  1. 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.

  1. 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.

Running the Application

To start the application, run:

npm run dev

Navigate to http://localhost:3000/ in your browser.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Packages

 
 
 

Contributors