Cross-client Identity - Google Accounts Authentication and Authorization — Google Developers
When developers build software, it routinely includes modules that run on a Web server, other modules that run in the browser, and others that run as native mobile apps. Both developers and the people who use their software typically think of all these modules as part of a single app.
Google’s OAuth2 implementation supports this view of the world