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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user