Skip to content

Commit

Permalink
🔨 Fix login reset
Browse files Browse the repository at this point in the history
  • Loading branch information
benlmyers committed Apr 26, 2023
1 parent 348679f commit bc94845
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added Examples/EasyFirebaseExample/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/EasyFirebase/Services/Auth/EasyAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public class EasyAuth: NSObject {
auth.removeStateDidChangeListener(authHandle)
}
authHandle = auth.addStateDidChangeListener { _, user in
guard let user = user, let newUser = T.get(from: user) else { return }
guard let user = user, let newUser = T.get(from: user), signedIn else { return }
EasyFirestore.Listening.stop(listenerKey)
EasyFirestore.Listening.listen(to: newUser.id, ofType: T.self, key: listenerKey) { document in
guard let document = document else {
Expand Down

0 comments on commit bc94845

Please sign in to comment.