Skip to content

Commit fbbcd2b

Browse files
committed
fix: Use signOut for google logout
1 parent 23d7371 commit fbbcd2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/common/usecase/authentication/sign_in_with_google_use_case.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Future<void> signInWithGoogleUseCase(Ref ref) async {
1818
final googleSignIn = GoogleSignIn.instance;
1919

2020
// Subtitle: Step 1 - Logout from Current Google account if any
21-
await googleSignIn.disconnect();
21+
await googleSignIn.signOut();
2222

2323
// Subtitle: Step 2 - Authenticate user with Google
2424
final account = await googleSignIn.authenticate();

lib/common/usecase/authentication/sign_out_use_case.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Future<void> signOutUseCase(Ref ref) async {
1616

1717
// Title: Try to sign out from Google - if any
1818
try {
19-
await GoogleSignIn.instance.disconnect();
19+
await GoogleSignIn.instance.signOut();
2020
} on MissingPluginException catch (error) {
2121
Flogger.e('[Authentication] Sign Out MissingPluginException $error');
2222
} on PlatformException catch (error) {

0 commit comments

Comments
 (0)