—Authentication

Enable Google + GitHub sign-in

V19 uses NextAuth. Google and GitHub sign-in options appear when the browser confirms that the host registered those providers.

The Integrations page in the V19 cockpit
Integrations in the cockpit, where provider connections start. Shown for a new synthetic workspace.

Three things to configure for each provider

Overview

  1. Create an OAuth application with the provider (Google Cloud Console / GitHub OAuth Apps).
  2. Register the callback URL pointing at your V19 host.
  3. Set the resulting Client ID + Client Secret on your host as environment variables.

Info

The sign-in page checks /api/auth/providers on load. A provider appears only when that response includes it. The appearance of a sign-in option confirms registration. Verify that the callback succeeds with a test account.

Required for every deployment regardless of provider

1. Base NextAuth env

bash# Required for every deployment
NEXTAUTH_URL=https://your-domain.example.com
NEXTAUTH_SECRET=<openssl rand -base64 32>

NEXTAUTH_URL must exactly match the public origin (no trailing slash). On Vercel set it under Project → Settings → Environment Variables for Production + Preview environments.

2. Google sign-in

1

Create an OAuth client

Open the Google Cloud Console → APIs & Services → Credentials. Click Create Credentials → OAuth client ID → Web application.

2

Add the authorized redirect URI

Under Authorized redirect URIs, add:

texthttps://your-domain.example.com/api/auth/callback/google

For local development add http://localhost:3000/api/auth/callback/google as well.

3

Copy the credentials

Google shows a Client ID + Client Secret. Treat the secret as you would an API key.

4

Set env on the host

bashGOOGLE_CLIENT_ID=1234567890-abc.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxxxxxxx

Heads up

Google's OAuth consent screen needs at least one scope (openid email profile is the NextAuth default). For external apps you'll need to publish the consent screen to leave test mode and accept non-test users.

3. GitHub sign-in

1

Create an OAuth app

2

Set the callback URL

Homepage URL: https://your-domain.example.com

Authorization callback URL:

texthttps://your-domain.example.com/api/auth/callback/github
3

Generate a client secret

After saving, click Generate a new client secret. GitHub shows the secret once — copy it immediately.

4

Set env on the host

bashGITHUB_CLIENT_ID=Iv1.xxxxxxxxxxxxxxxx
GITHUB_CLIENT_SECRET=ghp_xxxxxxxxxxxxxxxxxxxxxxxx

Info

For an organization-restricted app, create the OAuth app under the org's settings and enable the SSO requirement so only org members can sign in.

4. Verify it works

  1. Redeploy after setting the env vars (env changes don't auto-rebuild on most hosts).
  2. Open the sign-in page in an incognito window.
  3. Confirm the configured options appear. GitHub appears below email sign-in.
  4. Complete the provider flow and confirm that the browser returns to V19 Control or the page that requested sign-in.
  5. To connect the installed app, complete desktop pairing and approve the requested connection.

Heads up

If you see error=Configuration after the OAuth round-trip, check the host configuration, provider credentials, and registered callback URL.

Troubleshooting

A provider option is missing

Check whether the host has both credentials for that provider, then verify that the provider appears in the sign-in page's provider response.

Redirect URI mismatch

The exact callback URL registered with the provider must match the one NextAuth requests. For a preview deployment, configure that exact callback URL with the provider or restrict OAuth sign-in to your configured production origin.

Works locally but not in production

NEXTAUTH_URL not set or doesn't match the production origin. NextAuth uses this to construct callback URLs.

Still blocked?

Include the failed step and error. Never send a password, token, or cloud secret.

Open support request

Need help? Open a security review request.