File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,7 +154,10 @@ class AuthService {
154154 String ? clientId;
155155 String ? serverClientId;
156156
157- if (Platform .isAndroid) {
157+ if (kIsWeb) {
158+ clientId = _googleServerClientId.isNotEmpty ? _googleServerClientId : null ;
159+ serverClientId = null ;
160+ } else if (Platform .isAndroid) {
158161 // Android: clientId is auto-detected, only serverClientId needed for idToken
159162 serverClientId =
160163 _googleServerClientId.isNotEmpty ? _googleServerClientId : null ;
@@ -179,7 +182,9 @@ class AuthService {
179182
180183 /// Check if Google Sign-In is properly configured
181184 bool get isGoogleSignInConfigured {
182- if (Platform .isAndroid) {
185+ if (kIsWeb) {
186+ return _googleServerClientId.isNotEmpty;
187+ } else if (Platform .isAndroid) {
183188 return _googleServerClientId.isNotEmpty;
184189 } else if (Platform .isIOS) {
185190 return _googleClientIdIOS.isNotEmpty;
You can’t perform that action at this time.
0 commit comments