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.
Follow the steps below to get started:
http://localhost:3000/api/oauth/callback
https://yourdomain.com/api/oauth/callback
Client ID
and Client Secret
values and paste them into the .env
file as DUB_CLIENT_ID
and DUB_CLIENT_SECRET
respectively.Use Dub's API to build integrations and share them to get featured in our marketplace.
Build a Dub integration