Skip to content
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ passwords. Just one click and land into the site!

3. Once you create the app, you will receive the `Client ID` and `Client Secret`, add these credentials
in `Settings > Login with Google` settings page in their respective fields.
- If you have a multisite setup, navigate to `Network Settings` for the site and place the credentials over there as they are globally applied. For the remaining settings mentioned below, you can choose for the subsites to have their individual configurations or have a standard configuration be applied globally to all subsites.

4. `Create new user` enables new user registration irrespective of `Membership` settings in
`Settings > General`; as sometimes enabling user registration can lead to lots of spam users.
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ Ultra minimal plugin to let your users login to WordPress applications using the
3. This will give you **Client ID** and **Secret key**.


4. Input these values either in `WP Admin > Settings > WP Google Login`, or in `wp-config.php` using the following code snippet:
4. Input these values either in `WP Admin > Settings > Login With Google`, or in `wp-config.php` using the following code snippet:

```
define( 'WP_GOOGLE_LOGIN_CLIENT_ID', 'YOUR_GOOGLE_CLIENT_ID' );
define( 'WP_GOOGLE_LOGIN_SECRET', 'YOUR_SECRET_KEY' );
```
If you have a multisite setup, only `Network Administrator` will be able to modify these credentials from `Network Admin > Settings > Login With Google`.

### Browser support
[These browsers are supported](https://developers.google.com/identity/gsi/web/guides/supported-browsers). Note, for example, that One Tap Login is not supported in Safari.
Expand Down
4 changes: 2 additions & 2 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public function define_services(): void {

return new GoogleClient(
[
'client_id' => $settings->client_id,
'client_secret' => $settings->client_secret,
'client_id' => $settings->get_client_id(),
'client_secret' => $settings->get_client_secret(),
'redirect_uri' => wp_login_url(),
]
);
Expand Down
Loading
Loading