Add GitHub OAuth via passport-github2:
GET /auth/github — redirect to GitHub
GET /auth/github/callback — handle callback, create/link user, redirect to web app with tokens
- Link
githubId to existing account if email matches
- Store
avatarUrl from GitHub profile
Add GitHub OAuth via
passport-github2:GET /auth/github— redirect to GitHubGET /auth/github/callback— handle callback, create/link user, redirect to web app with tokensgithubIdto existing account if email matchesavatarUrlfrom GitHub profile