Repository navigation
Add sign in with X, as the first way in - #608
Merged
Merged
Conversation
The sign-in panel offered GitHub and Google. It now offers X first, as the filled button, then GitHub and Google. X goes through the same sign-in service as the other two, and as the Grok Bot Directory where it is already live, so a member is the same member on both sites. - One component draws the three buttons, in place of a file for each provider. A pressed button says "Signing in…" and switches the others off until the browser has left the page. - The callback remembers which way a sign-in was done, and the panel marks that button "Last used" from then on. - A line under the buttons tells members to sign in the way they did before: a different way in can be a different, empty account. - The messages for a failed sign-in no longer name only GitHub and Google. - README: a person added as an admin by email is not an admin through an X sign-in alone. The panel is the same on the sign-in page, in the sign-in dialog and on the edit pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds "Sign in with X" to the main site as the first, filled button, ahead of GitHub and Google.
X is already turned on in the sign-in service both sites share, and the Grok Bot Directory already offers it. So this needs no setup: no new keys, no change to the X app, nothing to switch on.
What happens to accounts
The sign-in service joins two sign-ins into one account only when both vouch for the same email address. The X app asks X for the address, and X shares it only once the member has confirmed it there.
The fourth row is why the panel has the "Last used" mark and the line under the buttons. A member who lands in a new account sees no owner menu on their plugins and an empty profile.
I could not measure how many members the fourth row would affect, because that needs the database.
Things to know
is_admin), not for X. The README now says so. Someone added by email who uses X first is an admin once they have also signed in with Google or GitHub on the same account.Testing
bunx biome ci .,bun run typecheckinapps/cursor,bunx next typegen && bun run typecheckinapps/grok-bot: pass.