To retrieve profile information for a user, use the To create a Google Sign-In button that uses the default settings, add a divĮlement with the class g-signin2 to your sign-in page: Īfter you have signed in a user with Google using the default scopes, you canĪccess the user's Google ID, name, profile URL, and email address. Logo, and colors for the sign-in state of the user and the scopes you request. With only a few lines of code, you canĪdd a button that automatically configures itself to have the appropriate text, The easiest way to add a Google Sign-In button to your site is to use anĪutomatically rendered sign-in button. Note: You can also specify your app's client ID with the client_id parameter With the google-signin-client_id meta element. Specify the client ID you created for your app in the Google Developers Console You must include the Google Platform Library on your web pages that integrate (A client secret is alsoĬreated, but you need it only for server-side operations.) Load the Google Platform Library You will need the client ID to complete the next steps. Name your OAuth 2.0 client and click CreateĪfter configuration is complete, take note of the client ID that was created.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |