Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): fix sign out issue on desktop and web (#8331)
- Loading branch information
Showing
7 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/flutterfire_ui/lib/src/auth/oauth/providers/sign_out_mixin.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'dart:io'; | ||
|
||
import '../oauth_providers.dart'; | ||
|
||
mixin SignOutMixin on OAuthProvider { | ||
@override | ||
Future<void> signOut() async { | ||
if (Platform.isAndroid || Platform.isIOS) { | ||
await logOutProvider(); | ||
} | ||
return super.signOut(); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/flutterfire_ui/lib/src/auth/oauth/providers/sign_out_mixin_web.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '../oauth_providers.dart'; | ||
|
||
mixin SignOutMixin on OAuthProvider {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters