Identity
A sample application that uses the
Identity API to
request information of the logged in user and present this info on the…
Identity
A sample application that uses the
Identity API to
request information of the logged in user and present this info on the screen.
If the user has a profile picture, an XMLHttpRequest request is also sent to
grab the image and show it in the app.
This app uses the getAuthToken flow of the Identity API, so it only works with
Google accounts. If you want to identify the user in a non-Google OAuth2 flow,
you should use the launchWebAuthFlow method instead.
See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/identity
This version was built from git commit 3e05590eb4a8cc51d45434e15c9f057f5e9b7965 https://github.com/GoogleChrome/chrome-app-samples/tree/3e05590eb4a8cc51d45434e15c9f057f5e9b7965/samples/identity