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.Track how your links are converting to sales on Stripe.
Track how your links are converting to sales on Shopify.
Connect your Dub workspace to 7,000+ apps via Zapier.
Shorten and manage your links directly in Raycast.
Shorten and manage your links directly in Slack.
Send and receive events between your Dub and Segment workspaces.
Use Dub's API to build integrations and share them to get featured in our marketplace.
Build a Dub integration