1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-05 19:22:08 +00:00

[web_dashboard] add logout (#447)

* logout wip

* Use AnimatedSwitcher, change lingo from "login" to signIn"

* add automatic sign-in

* fix flashing sign in button

* sign out of FirebaseAuth and GoogleSignIn

* formatting

* change isSignedIn() to getter

* Add error handling for sign in

* improve error handling at login screen
This commit is contained in:
John Ryan
2020-06-01 14:39:06 -07:00
committed by GitHub
parent 46a3f2dd09
commit 8a9bcfa113
7 changed files with 218 additions and 55 deletions

View File

@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
abstract class Auth {
Future<bool> get isSignedIn;
Future<User> signIn();
Future signOut();
}
@@ -10,3 +11,5 @@ abstract class Auth {
abstract class User {
String get uid;
}
class SignInException implements Exception {}