Created
December 2, 2020 15:49
-
-
Save fredriccliver/dd06452a72fb6a29dc97f9106429d1d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func onClickSignOut(_ sender: UIButton) { | |
let firebaseAuth = Auth.auth() | |
do { | |
try firebaseAuth.signOut() | |
self.view.window?.rootViewController?.dismiss(animated: true, completion: nil) | |
} catch let signOutError as NSError { | |
print ("Error signing out: \(signOutError.localizedDescription)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment