You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
| clientId | string | REQUIRED |You can create a clientID by creating a [new project on Google developers website.](https://developers.google.com/identity/sign-in/web/sign-in)|
143
-
| jsSrc | string |https://apis.google.com/js/api.js|URL of the Javascript file normally hosted by Google|
144
-
| hostedDomain | string | - |The G Suite domain to which users must belong to sign in|
145
-
| scope | string | profile email ||
146
-
| responseType | string | permission | Can 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.
147
-
| accessType | string | online |Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve an authorization code for fetching a refresh token |
148
-
| onSuccess | function | REQUIRED ||
149
-
| onFailure | function | REQUIRED ||
150
-
| onScriptLoadFailure | function | - |If defined, will be called when loading the 'google-login' script fails (otherwise onFailure will be called) |
151
-
| onRequest | function | - ||
152
-
| onAutoLoadFinished | function | - ||
153
-
| buttonText | string | Login with Google ||
154
-
| className | string | - ||
155
-
| style | object | - ||
156
-
| disabledStyle| object | - ||
157
-
| loginHint | string | - ||
158
-
| prompt | string | - |Can be 'consent' to force google return refresh token. |
159
-
| tag | string | button | sets element tag (div, a, span, etc |
160
-
| type | string | button |sets button type (submit || button) |
| clientId | string |REQUIRED |You can create a clientID by creating a [new project on Google developers website.](https://developers.google.com/identity/sign-in/web/sign-in)|
143
+
| jsSrc | string |https://apis.google.com/js/api.js|URL of the Javascript file normally hosted by Google|
144
+
| hostedDomain | string |- |The G Suite domain to which users must belong to sign in|
145
+
| scope | string |profile email | Base scopes requested, Passing `scope` prop will be added additionally to `profile email`. Passing none will request only `profile email`|
146
+
| responseType | string | permission | Can 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.
147
+
| accessType | string |online |Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve an authorization code for fetching a refresh token|
148
+
| onSuccess | function |REQUIRED ||
149
+
| onFailure | function |REQUIRED ||
150
+
| onScriptLoadFailure | function |- |If defined, will be called when loading the 'google-login' script fails (otherwise onFailure will be called)|
151
+
| onRequest | function |- ||
152
+
| onAutoLoadFinished | function |- ||
153
+
| buttonText | string |Login with Google ||
154
+
| className | string |- ||
155
+
| style | object |- ||
156
+
| disabledStyle| object |- ||
157
+
| loginHint | string |- ||
158
+
| prompt | string |- |Can be 'consent' to force google return refresh token.|
159
+
| tag | string |button |sets element tag (div, a, span, etc|
160
+
| type | string |button |sets button type (submit|| button) |
| uxMode | string | popup |The UX mode to use for the sign-in flow. Valid values are popup and redirect. |
166
-
| theme | string | light |If set to `dark` the button will follow the Google brand guidelines for dark. Otherwise it will default to light (https://developers.google.com/identity/branding-guidelines)|
167
-
| icon | boolean | true |Show (`true`) or hide (`false`) the Google Icon |
168
-
| redirectUri | string |-| 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. The default redirect_uri is the current URL stripped of query parameters and hash fragment. |
169
-
| isSignedIn | boolean | false |If true will return GoogleUser object on load, if user has given your app permission |
170
-
| render | function |-|Render prop to use a custom element, use renderProps.onClick |
165
+
| uxMode | string |popup |The UX mode to use for the sign-in flow. Valid values are popup and redirect.|
166
+
| theme | string |light |If set to `dark` the button will follow the Google brand guidelines for dark. Otherwise it will default to light (https://developers.google.com/identity/branding-guidelines)|
167
+
| icon | boolean |true |Show (`true`) or hide (`false`) the Google Icon|
168
+
| redirectUri | string | - | 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. The default redirect_uri is the current URL stripped of query parameters and hash fragment. |
169
+
| isSignedIn | boolean |false |If true will return GoogleUser object on load, if user has given your app permission|
170
+
| render | function |-|Render prop to use a custom element, use renderProps.onClick|
171
171
Google Scopes List: [scopes](https://developers.google.com/identity/protocols/googlescopes)
0 commit comments