Replace password login with Hack Club Auth OAuth and sync signed-in users to Airtable _users - #26
Draft
scooterthedev with Copilot wants to merge 2 commits into
Draft
Replace password login with Hack Club Auth OAuth and sync signed-in users to Airtable _users#26scooterthedev with Copilot wants to merge 2 commits into
_users#26scooterthedev with Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/hackclub/stack/sessions/85f2e65b-e85b-4fc6-9629-8eed4fac16e0 Co-authored-by: scooterthedev <92922224+scooterthedev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace login with Hack Club auth
Replace password login with Hack Club Auth OAuth and sync signed-in users to Airtable May 18, 2026
_users
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.
This change replaces
/loginpassword auth with Hack Club Auth and provisions/updates signed-in users in Airtable_userswith the requested identity and account fields. It removes the active password-login path and uses Hack Club OAuth as the login entrypoint.Auth flow migration (password → Hack Club OAuth)
server/authRoutes.js:userId,hackclubSub)/api/auth/password/loginusage and route path from the active login flow.Scopes enforcement
email name profile birthdate address verification_status slack_id basic_infoHC_SCOPESis configured.User persistence updates
slack_usernamelast_sign_in_atlast_sign_in_aton each sign-in.membertouserto match requested defaults.Airtable
_usersupsert on sign-in_usersupsert helper inserver/airtable.js._usersrecord keyed byuser_idwith:user_id,Name,bricks,slack_id,slack username,role,last sign in,created at,email,hackatime hoursbricks=0,role=user,hackatime hours=0when absent).Representative snippet
Original prompt
Created from VS Code.