Skip to content

Conversation

@vreshch
Copy link
Contributor

@vreshch vreshch commented Dec 1, 2025

Summary

Add a verifiedAlias field to store the verified username from OAuth providers (e.g., GitHub username).

Changes

  • Shared types: Added verifiedAlias to UserDocument, UserApiResponse, UserUiResponse
  • Shared types: Added username to ProviderProfile for passing provider-specific usernames
  • User service: Store verifiedAlias when creating or updating users during login
  • OAuth service: Pass GitHub username to user service and include verifiedAlias in Express.User
  • Auth routes: Return verifiedAlias in /me endpoint response
  • Frontend: Added verifiedAlias to User interface

Notes

  • Only GitHub provides a username currently; Google and Microsoft do not
  • The alias is set on first login and not overwritten on subsequent logins
  • No migration needed - existing users will get alias on next GitHub login

- Add verifiedAlias field to UserDocument in shared types
- Add username field to ProviderProfile for OAuth providers
- Update user service to store GitHub username as verifiedAlias
- Update OAuth service to pass username and include verifiedAlias in Express.User
- Update /me endpoint to return verifiedAlias
- Update frontend User interface to include verifiedAlias
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Pull Request Validation Successful

Step Results:

  • 📦 Install dependencies: true
  • 🔍 Run linting: true
  • 🧪 Run tests: true
  • 🏗️ Build packages: true

🎉 All quality checks passed! Ready to merge.

📋 View workflow run


🐳 Docker Images Built Successfully!

🏷️ Tag: pr-13

  • Backend: ✅ Built
  • Frontend: ✅ Built

📋 View workflow


⏰ Generated at: 2025-12-01T18:16:21.274Z

@vreshch vreshch merged commit a0a0597 into master Dec 1, 2025
3 checks passed
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.

2 participants