Skip to content

v363: Move sign-in to the public identity hub - #277

Merged
nicu-chiciuc merged 1 commit into
mainfrom
public-hub
Nov 19, 2026
Merged

nicu-chiciuc merged 1 commit into
mainfrom
public-hub

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Google sign-in now goes through the public identity hub at https://id.samebase.com instead of https://auth.samebase.com. Each deployment registers a new hub client there on its next deploy.

What a user sees: the sign-in hop goes through id.samebase.com, under the same hub name (Samebase) with the same Terms and Privacy links. Google may show its account chooser or consent screen again, because the hub has its own Google OAuth client.

Production users keep their accounts. Convex Auth keys a hub account on (provider "hub", providerAccountId = sub), and the issuer is stored nowhere: readHubProfile returns id: claims.sub (apps/scout/convex/auth.ts), and the accounts table holds only provider, providerAccountId, userId. Both hubs run the same broker, which issues sub = google:<Google account id>. Google's account id does not depend on the OAuth client, so the sub is the same on both hubs. If a lookup ever misses, createHubUser still finds the user by verified email.

Checked:

  • The public hub's policy gives every repository the google connector with no resources. That covers this client: google only, one callback per deployment.
  • pnpm run check (vp check, typecheck, tests): passed, 1583 tests.

The old clients on auth.samebase.com are not deleted. The production client stays until someone removes it by hand. Preview clients expire on their own.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@github-actions

Copy link
Copy Markdown
pr-277
proper-husky-40.convex.site
8f2a208 2026-11-19 15:48 UTC
Sign-in with google: on
Convex proper-husky-40

@nicu-chiciuc
nicu-chiciuc merged commit 69d8ad5 into main Nov 19, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
preview — 8f2a208f Deployed Nov 19, 2026 by nicu-chiciuc via Deploy the preview #206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant