Skip to content

Instantly share code, notes, and snippets.

View nickbusy's full-sized avatar

Nick Busy nickbusy

  • Melbourne, AU
View GitHub Profile
@nickbusy
nickbusy / meteor_oauth_google.md
Last active May 25, 2022 07:55
Google OAuth for a Meteor web app accessible using multiple domain names (branding)

Multi-domain Meteor app instance and Google OAuth

Overview

Changes to Meteor packages (OAuth & Google) to support Meteor web app deployed under multiple domains (for branding purpose, for example).

Only changes to Google and the core OAuth packages are included here. Other OAuth packages, such as Facebook can be amended in a similar way.

The solution does not include sharing the login state across the domains. If that's what you need, there's another suggested solution for that on the net.

Note: The files attached don't include complete source code from the packages but only changed functions.