diff --git a/kivyauth/firebase_auth.py b/kivyauth/firebase_auth.py index 4245a2b..a6db1f6 100644 --- a/kivyauth/firebase_auth.py +++ b/kivyauth/firebase_auth.py @@ -27,7 +27,9 @@ def onSuccess(self, result): user = FirebaseAuth.getInstance().getCurrentUser() self.success_listener( - user.getDisplayName(), user.getEmail(), user.getPhotoUrl().toString() + user.getDisplayName(), + user.getEmail(), + user.getPhotoUrl().toString() ) @@ -62,15 +64,21 @@ def firebase_login(provider): task = pendingResultTask.addOnSuccessListener( OnSuccessListener(event_success_listener) ) - task = task.addOnFailureListener(OnFailureListener(event_error_listener)) + task = task.addOnFailureListener( + OnFailureListener(event_error_listener) + ) else: # There's no pending result so you need to start the sign-in flow. task = FirebaseAuth.startActivityForSignInWithProvider( context, provider.build() ) - task = task.addOnSuccessListener(OnSuccessListener(event_success_listener)) - task = task.addOnFailureListener(OnFailureListener(event_error_listener)) + task = task.addOnSuccessListener( + OnSuccessListener(event_success_listener) + ) + task = task.addOnFailureListener( + OnFailureListener(event_error_listener) + ) def firebase_logout(after_logout): diff --git a/kivyauth/google_auth.py b/kivyauth/google_auth.py index 08929ee..0f27592 100644 --- a/kivyauth/google_auth.py +++ b/kivyauth/google_auth.py @@ -39,7 +39,9 @@ def google_activity_listener(self, request_code, result_code, data): ) except Exception as e: - Logger.info("KivyAuth: Error signing in using Google. {}".format(e)) + Logger.info( + "KivyAuth: Error signing in using Google. {}".format(e) + ) self.error_listener()