Skip to content

Commit

Permalink
doc: correct docs around jsSrc and hostedDomain (anthonyjgrove#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
t49tran authored May 19, 2020
1 parent 73117ea commit 99ad896
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Use GoogleLogout button to logout the user from google.
| params | value | default value | description |
|:------------:|:--------:|:------------------------------------:|:----------------:|
| 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) |
| jsSrc | string | - | |
| hostedDomain | string | - | URL of the Javascript file normally hosted by Google |
| jsSrc | string |https://apis.google.com/js/api.js|URL of the Javascript file normally hosted by Google|
| hostedDomain | string | - |The G Suite domain to which users must belong to sign in|
| scope | string | profile email | |
| 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.
| accessType | string | online | Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve an authorization code for fetching a refresh token |
Expand Down Expand Up @@ -174,8 +174,8 @@ Google Scopes List: [scopes](https://developers.google.com/identity/protocols/go
| params | value | default value | description |
|:------------:|:--------:|:------------------------------------:|:----------------:|
| 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) |
| jsSrc | string | - | |
| hostedDomain | string | - | URL of the Javascript file normally hosted by Google |
| jsSrc | string | https://apis.google.com/js/api.js | URL of the Javascript file normally hosted by Google |
| hostedDomain | string | - | The G Suite domain to which users must belong to sign in |
| scope | string | profile email | |
| accessType | string | online | Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve an authorization code for fetching a refresh token |
| onLogoutSuccess | function | REQUIRED | |
Expand Down
4 changes: 2 additions & 2 deletions stories/google-login-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ If you use the hostedDomain param, make sure to validate the id_token (a JSON we
| params | value | default value | description |
|:------------:|:--------:|:------------------------------------:|:----------------:|
| 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) |
| jsSrc | string | - | |
| hostedDomain | string | - | URL of the Javascript file normally hosted by Google |
| jsSrc | string | https://apis.google.com/js/api.js |URL of the Javascript file normally hosted by Google|
| hostedDomain | string | - | The G Suite domain to which users must belong to sign in|
| scope | string | profile email | |
| 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.
| accessType | string | online | Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve a refresh token |
Expand Down
4 changes: 2 additions & 2 deletions stories/google-logout-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Use GoogleLogout button to logout the user from google.
| params | value | default value | description |
|:------------:|:--------:|:------------------------------------:|:----------------:|
| 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) |
| jsSrc | string | - | |
| hostedDomain | string | - | URL of the Javascript file normally hosted by Google |
| jsSrc | string | https://apis.google.com/js/api.js | URL of the Javascript file normally hosted by Google |
| hostedDomain | string | - | The G Suite domain to which users must belong to sign in |
| scope | string | profile email | |
| accessType | string | online | Can be either 'online' or 'offline'. Use offline with responseType 'code' to retrieve a refresh token |
| onLogoutSuccess | function | REQUIRED | |
Expand Down

0 comments on commit 99ad896

Please sign in to comment.