Skip to content

Commit 70bce06

Browse files
Copilotmarcelomendoncasoaresexaby73
authored
fix: Stop Google Sign-In button spinner when authentication is canceled (serverpod#4424)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: marcelomendoncasoares <6807059+marcelomendoncasoares@users.noreply.github.com> Co-authored-by: Nabeel Parkar <nabeelparkar99@gmail.com>
1 parent f280184 commit 70bce06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

modules/serverpod_auth/serverpod_auth_idp/serverpod_auth_idp_flutter/lib/src/google/google_auth_controller.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ class GoogleAuthController extends ChangeNotifier {
203203
if (error is GoogleSignInException &&
204204
error.code == GoogleSignInExceptionCode.canceled) {
205205
// The Google Sign-In package already prints these to the debug log.
206+
_setState(GoogleAuthState.idle);
206207
return;
207208
}
208209
_error = error;

0 commit comments

Comments
 (0)