1-Click Signup Example App
GitHub Repository: https://github.com/VerifiedInc/one-click-signup-example-app
About
This app shows Verified 1-Click Signup for a fictional brand called Slooow, whose logo is a sloth! 🦥
It shows four different flows (listed under Usage). The first is a manual signup flow, and the next three are 1-Click Signup flows, each using a different integration type.
For more information about 1-Click Signup, see the Verified Docs and in particular the Integration Guide.
Setup
-
Access the Verified Dashboard.
-
Enter your email and click the 1-Click Login button. We'll send you a verification code by email.
-
Complete the verification step. Click the verification button in the email, or enter the verification code. We'll automatically log you in.
-
Set "Slooow" as the company name. The fictional company for this example app is called Slooow. We'll automatically create a brand called Slooow for you and take you to its Brand Details page.
-
Copy your Sandbox API key. You'll use this in the next step.
-
-
Set up the app:
-
Clone this repo.
-
Set up environment variables:
- Rename the
.env.example
file to.env
. - Set your Sandbox API key as the value for
ONE_CLICK_API_KEY
. You copied this in step (1)(iv).
- Rename the
-
Run
npm install
to install dependencies. -
Run
npm run dev
to run the development server. The app will be running at http://localhost:3061.
-
Usage
You can switch between the different flows using the menu in the upper right corner.