Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add the option to use a hosted domain with google's oauth #1332
The hd option is used to restrict which email domain that are allowed to log in to your app. Starting from this commit you can pass `hostedDomain: 'example.com'` to only allow emails from the domain `example.com`.
There are some relevant comments here. In short, it seems that lots of people report the 'hd=" parameter to be working with oauth2, however it is unclear why it is not in the documentation (omission vs. non-support).
Another report of success using the hd paramater can be found in this discussion, which mirrors similar confusion by the situation: "Would anybody be able to answer if this is an undocumented feature that's here to stay?"