We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99513e9 commit 381e8efCopy full SHA for 381e8ef
lib/src/components/supa_socials_auth.dart
@@ -158,9 +158,15 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
158
required String? webClientId,
159
required String? iosClientId,
160
}) async {
161
+ final scopes = widget.scopes != null
162
+ ? widget.scopes![OAuthProvider.google]?.split(',')
163
+ : null;
164
+
165
final GoogleSignIn googleSignIn = GoogleSignIn(
166
clientId: iosClientId,
167
serverClientId: webClientId,
168
+ // These default values ['email', 'profile'] are needed as to gogole authenitcation recent update
169
+ scopes: scopes ?? ['email', 'profile'],
170
);
171
172
final googleUser = await googleSignIn.signIn();
0 commit comments