1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-24 05:12:06 +00:00
Files
samples/experimental/web_dashboard/lib/src/auth/auth.dart
John Ryan 8a9bcfa113 [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
2020-06-01 14:39:06 -07:00

16 lines
405 B
Dart

// Copyright 2020, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Auth {
Future<bool> get isSignedIn;
Future<User> signIn();
Future signOut();
}
abstract class User {
String get uid;
}
class SignInException implements Exception {}