Skip to main content

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

  1. Access the Verified Dashboard.

    1. Enter your email and click the 1-Click Login button. We'll send you a verification code by email.

    2. Complete the verification step. Click the verification button in the email, or enter the verification code. We'll automatically log you in.

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

    4. Copy your Sandbox API key. You'll use this in the next step.

  2. Set up the app:

    1. Clone this repo.

    2. Set up environment variables:

      1. Rename the .env.example file to .env.
      2. Set your Sandbox API key as the value for ONE_CLICK_API_KEY. You copied this in step (1)(iv).
    3. Run npm install to install dependencies.

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