![]() OnFailure callback is called when either initialization or a signin attempt fails. You can also pass child components such as icons into the button component. OnSuccess callback ( w/ offline true) property name OnSuccess callback returns an array of objects (contacts). ![]() Render prop to use a custom element, use renderProps.onClick The default redirect_uri is the current URL stripped of query parameters and hash fragment. If using ux_mode='redirect', this parameter allows you to override the default redirect_uri that will be used at the end of the consent flow. Show ( true) or hide ( false) the Google Icon If set to dark the button will follow the Google brand guidelines for dark. Use offline with responseType 'code' to retrieve a refresh token URL of the Javascript file normally hosted by GoogleĬan be either space-delimited 'id_token', to retrieve an ID Token + 'permission' (or 'token'), to retrieve an Access Token, or 'code', to retrieve an Authorization Code.Ĭan be either 'online' or 'offline'. The returned decoded token should have an hd key equal to the hosted domain you'd like to restrict to.īy passing a number here you can restrict how many results you want to return.Have your server decode the id_token by using a common JWT library such as jwt-simple or by sending a GET request to.Send this token to your server (preferably as an Authorization header).render ( ( This is my custom Google button ) } buttonText = "Import" onSuccess = callback function, you should get back a standard JWT located at response.hg.id_token ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |