Browse all
Built by
Dub
Category
Screenshot 1
Screenshot 2
Screenshot 3

Dub supports OAuth 2.0 authentication, which is recommended if you build integrations extending Dub’s functionality.

This example demonstrates how to authenticate users with Dub OAuth 2.0 flow.

Getting Started

Follow the steps below to get started:

  1. Create a new Integration in your Dub workspace.
  2. Fill in all the appropriate fields.
  3. Make sure to set your redirect URIs:
    1. Local development: http://localhost:3000/api/oauth/callback
    2. Production: https://yourdomain.com/api/oauth/callback
  4. Copy the Client ID and Client Secret values and paste them into the .env file as DUB_CLIENT_ID and DUB_CLIENT_SECRET respectively.
  5. Install the dependencies and start the app.
  6. Click the Sign in with Dub button to initiate the OAuth flow.

Popular integrations

Build integrations

Use Dub's API to build integrations and share them to get featured in our marketplace.

Build a Dub integration