aboutsummaryrefslogtreecommitdiff
path: root/lib/firebase
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-05-22 09:16:29 -0600
committerIván Ávalos <avalos@disroot.org>2023-05-22 09:16:29 -0600
commit6dec9856b1b94bfc4b284125920a2be52be6dabf (patch)
tree7ef395dd11a36c4e88e88716b3db7277884c3c77 /lib/firebase
parentf0e45a5a510d2b4693580179645bd0bb0b352f86 (diff)
downloadlinkchat-6dec9856b1b94bfc4b284125920a2be52be6dabf.tar.gz
linkchat-6dec9856b1b94bfc4b284125920a2be52be6dabf.tar.bz2
linkchat-6dec9856b1b94bfc4b284125920a2be52be6dabf.zip
Se persiste sesión, y se guardan imágenes en caché
Diffstat (limited to 'lib/firebase')
-rw-r--r--lib/firebase/auth.dart1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/firebase/auth.dart b/lib/firebase/auth.dart
index 303412e..35da5bf 100644
--- a/lib/firebase/auth.dart
+++ b/lib/firebase/auth.dart
@@ -15,6 +15,7 @@ class Auth {
final Database _db = Database();
User? get currentUser => _auth.currentUser;
+ Stream<User?> get userChanges => _auth.userChanges();
Future<bool> createUserWithEmailAndPassword({
required String email,