Skip to content

feat: add OAuth2 social authentication (Google, GitHub, Twitter)#81

Merged
memplethee-lab merged 3 commits into
SourceXXL:mainfrom
Yasir-TechGuy:feat/oauth2-social-auth
Jun 26, 2026
Merged

feat: add OAuth2 social authentication (Google, GitHub, Twitter)#81
memplethee-lab merged 3 commits into
SourceXXL:mainfrom
Yasir-TechGuy:feat/oauth2-social-auth

Conversation

@Yasir-TechGuy

Copy link
Copy Markdown
  • Add SocialAccount entity to store linked social provider accounts
  • Implement Twitter/X OAuth provider alongside existing Google and GitHub
  • Add account linking logic to connect social accounts to existing users
  • Add OAuthController with endpoints for auth, callback, link, and unlink
  • Add audit logging for all OAuth login and account linking attempts
  • Add getLinkedProviders endpoint to list connected social accounts
  • Update User entity with socialAccounts relation
  • Update AuthModule to register SocialAccount entity and OAuthController
  • Add OAuth env vars to .env.example

Closes #72

- Add SocialAccount entity to store linked social provider accounts
- Implement Twitter/X OAuth provider alongside existing Google and GitHub
- Add account linking logic to connect social accounts to existing users
- Add OAuthController with endpoints for auth, callback, link, and unlink
- Add audit logging for all OAuth login and account linking attempts
- Add getLinkedProviders endpoint to list connected social accounts
- Update User entity with socialAccounts relation
- Update AuthModule to register SocialAccount entity and OAuthController
- Add OAuth env vars to .env.example

Closes #<issue-number>
@Yasir-TechGuy

Copy link
Copy Markdown
Author

Hi Maintainer, please check it out and merge it, if there is no problem with it. Thanks

@memplethee-lab

Copy link
Copy Markdown
Contributor

@Yasir-TechGuy please check CI and fix the errors

@Yasir-TechGuy

Copy link
Copy Markdown
Author

Hi @memplethee-lab , how is it? can it be merger?

@memplethee-lab memplethee-lab merged commit 0632e18 into SourceXXL:main Jun 26, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 26, 2026
7 tasks
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.

OAuth2 Social Login Integration

2 participants