Skip to content

fix(auth): allow verified GitHub administrators to sign up - #7

Merged
oglassdev merged 1 commit into
mainfrom
fix/github-admin-signup
Sep 21, 2026
Merged

oglassdev merged 1 commit into
mainfrom
fix/github-admin-signup

Conversation

@oglassdev

@oglassdev oglassdev commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

A configured GitHub administrator could not complete their first login on a closed instance: Better Auth filters protected additional fields out of provider mappings before the database hook runs.

Check signup policy against the verified OAuth profile and persist the GitHub ID from the verified provider account. The ID remains unavailable to user updates, and closed signup and invitation restrictions remain enforced.

Validation: just ready passed (28 Worker tests, Go race tests, formatting, lint, type checks, vet, and builds). Callback tests cover administrator signup/session, rejection of an unlisted identity, and the protected GitHub ID. GitHub Actions remains blocked by the organization billing/spending restriction.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

@oglassdev
oglassdev merged commit a84694f into main Sep 21, 2026
1 of 3 checks passed
@oglassdev
oglassdev deleted the fix/github-admin-signup branch September 21, 2026 05:43
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