Skip to content

Commit 32d42b5

Browse files
committed
🌹 Add note about multiple Google scopes
1 parent 3f0e6cb commit 32d42b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ final response = await http.post('https://www.googleapis.com/oauth2/v4/token', b
6868
final accessToken = jsonDecode(response.body)['access_token'] as String;
6969
```
7070

71+
**Note:** To use multiple scopes with Google, you need to encode them as a single string, separated by spaces. For example, `scope: 'email https://www.googleapis.com/auth/userinfo.profile'`. Here is [a list of all supported scopes](https://developers.google.com/identity/protocols/oauth2/scopes).
72+
7173
## Setup
7274

7375
Setup works as for any Flutter plugin, expect the Android and Web caveats outlined below:

0 commit comments

Comments
 (0)