(feat) Discord OAuth and verification#1451
Merged
evanjacobson merged 2 commits intomainfrom Mar 24, 2026
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (20 files)
Reviewed by gpt-5.4-20260305 · 922,964 tokens |
jeanduplessis
approved these changes
Mar 24, 2026
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
#1354 with db migrations not breaking.
there is zero diff between the other files and the previous PR
Add Discord as an OAuth auth provider on the user profile page, using a separate Discord OAuth app (distinct from the existing bot)
Add Discord guild membership verification — checks if the user is a member of the Kilo Discord server via the bot API
Auto-verify guild membership when a user first links their Discord account; re-verify button available for non-members
New DB migration adds
discord_server_memberanddiscord_server_member_atcolumns tokilocode_usersVerification
pnpm typecheck— passespnpm test— passesVisual Changes
New "Discord Server Membership" card on the user profile page showing:
Loom (Kilo Team only)
https://www.loom.com/share/3512eb86ef38454d86c95fa7cbfc51f1
Other PRs for this feature
#1356
Reviewer Notes
DISCORD_OAUTH_CLIENT_ID,DISCORD_OAUTH_CLIENT_SECRET) are separate from the existing bot token (DISCORD_OAUTH_BOT_TOKEN) — the bot token is used server-side for guild membership checksdiscord_provider_account_idwas intentionally excluded from thegetDiscordGuildStatusresponse to minimize API surface