Setting Up Social Login

Pick your provider to get a step-by-step guide for registering your app and pasting the Client ID into DontCode.

~10 minutes per provider
Setup Guide

What you will do

You will create a developer project on each OAuth provider you want to support, configure a redirect URL, copy the Client ID, and paste it into your DontCode project. Once you redeploy, the social login buttons on your live site start working.

Before you begin

  • Your DontCode project must be deployed (or have a target deploy URL ready).
  • You need a developer-facing account for each provider you intend to enable.
  • You have admin or owner role on your DontCode project.

Your redirect URL

Every provider asks you for a "Redirect URI" or "Callback URL". This is the address the provider sends users back to after they approve sign-in. For DontCode apps, the pattern is the same regardless of provider:

https://<your-deployed-domain>/api/auth/oauth/callback

Replace <your-deployed-domain> with your actual deployed URL. If you are using a custom domain, use that. You can register multiple redirect URLs with each provider, which is handy if you want to keep using both your *.dontcode.cafe subdomain and your custom domain.

How OAuth works (in 30 seconds)

  1. A user clicks "Sign in with X" on your deployed app.
  2. Your app redirects them to the provider, including your Client ID.
  3. The user approves the sign-in on the provider's page.
  4. The provider redirects them back to your app with a one-time code.
  5. Your app exchanges that code for the user's identity (email, name, etc.) and creates a session.

Troubleshooting (applies to all providers)

Users see "redirect_uri_mismatch"

The redirect URL registered with the provider does not match the one your deployed app actually uses. Double-check spelling, http vs https, and trailing slashes. Most providers let you register multiple redirect URIs. Add every variant you might use (custom domain + dontcode.cafe subdomain).

Login button does not appear after saving

OAuth client IDs only get pushed to your deployed app on the next deploy. Hit Deploy in the editor. The buttons appear once the new build is live.

Related: how we secure user passwords

OAuth handles sign-in for users who pick a social provider. For users who sign up with email and password, we run their credentials through Argon2id, salt every hash, and isolate each project's auth pool. Worth sending to anyone who asks how your app stores passwords.

Read the security guide β†’

CEO
Houk Elijah Storm
Registration
802-87-03840
Address
30, Nonhyeon-ro 10-gil, Gangnam-gu, Seoul, Republic of Korea (505-J39)
Tel
010-9766-7338
Email
storm@dontcode.co
    Dont Code