Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
just point to web plugin
  • Loading branch information
kevmoo committed May 11, 2021
commit 54644964b4e24902ee6e8d4001d335f2e8803a8c
19 changes: 3 additions & 16 deletions packages/google_sign_in/google_sign_in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ available yet. [Feedback](https://github.com/flutter/flutter/issues) and
[Pull Requests](https://github.com/flutter/plugins/pulls) are most welcome!

## Platform integration

### Android integration

To access Google Sign-In, you'll need to make sure to
Expand Down Expand Up @@ -73,23 +74,9 @@ be an option.

### Web integration

<!-- Copied from https://developers.google.com/identity/sign-in/web/sign-in on May 11, 2021-->
#### Create authorization credentials

1. Go to the [Credentials page](https://console.developers.google.com/apis/credentials).
1. Click **Create credentials > OAuth client ID**.
1. Select the **Web application** application type.
1. Name your OAuth 2.0 client and click **Create**.

After configuration is complete, take note of the client ID that was created. You will need the client ID to complete the next steps. (A client secret is also created, but you need it only for server-side operations.)
For web integration details, see the
[`google_sign_in_web` package](https://pub.dev/packages/google_sign_in_web).

#### Specify your app's client ID

In your app's `web/index.html` file, specify the client ID you created for your app in the Google Developers Console with the `google-signin-client_id` meta element.

```html
<meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
```
## Usage

### Import the package
Expand Down