mirror of
https://github.com/flutter/samples.git
synced 2026-03-24 05:12:06 +00:00
* 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
16 lines
405 B
Dart
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 {}
|