[GH-ISSUE #1041] Add support for setting hd "hostedDomain" parameter for Google OAuth #8564

Closed
opened 2026-04-13 03:41:01 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @xAbdaziz on GitHub (Dec 27, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1041

Is this suited for github?

  • Yes, this is suited for github

No response

Describe the solution you'd like

hd or hostedDomain is a parameter that can be used to restrict login for a specific organization/domain
https://stackoverflow.com/questions/10858813/restrict-login-email-with-google-oauth2-0-to-specific-domain-name
https://developers.google.com/identity/openid-connect/openid-connect#hd-param

Describe alternatives you've considered

None

Additional context

No response

Originally created by @xAbdaziz on GitHub (Dec 27, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1041 ### Is this suited for github? - [X] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. _No response_ ### Describe the solution you'd like hd or hostedDomain is a parameter that can be used to restrict login for a specific organization/domain https://stackoverflow.com/questions/10858813/restrict-login-email-with-google-oauth2-0-to-specific-domain-name https://developers.google.com/identity/openid-connect/openid-connect#hd-param ### Describe alternatives you've considered None ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 03:41:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8564