diff --git a/lib/services/auth/auth_service.dart b/lib/services/auth/auth_service.dart index 40bca84..6067130 100644 --- a/lib/services/auth/auth_service.dart +++ b/lib/services/auth/auth_service.dart @@ -11,7 +11,7 @@ class AuthService { return _auth.currentUser; } - //sign in + // sign in Future signInWithEmailPassword(String email, password) async { try { UserCredential userCredential = await _auth.signInWithEmailAndPassword( @@ -19,15 +19,6 @@ class AuthService { password: password, ); - // save user info if it does not already exist - // TODO TESTING - same code snippet as for sign up - _firestore.collection("Users").doc(userCredential.user!.uid).set( - { - 'uid': userCredential.user!.uid, - 'email': email, - }, - ); - return userCredential; } on FirebaseAuthException catch (e) { throw Exception(e.code);