Skip to content
Closed
Changes from all commits
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
6 changes: 6 additions & 0 deletions lib/src/components/supa_socials_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,15 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
required String? webClientId,
required String? iosClientId,
}) async {
final scopes = widget.scopes != null
? widget.scopes![OAuthProvider.google]?.split(',')
: null;

final GoogleSignIn googleSignIn = GoogleSignIn(
clientId: iosClientId,
serverClientId: webClientId,
// These default values ['email', 'profile'] are needed as to gogole authenitcation recent update
scopes: scopes ?? ['email', 'profile'],
);

final googleUser = await googleSignIn.signIn();
Expand Down
Loading