Skip to content

Instantly share code, notes, and snippets.

@fredriccliver
Created December 2, 2020 15:49
Show Gist options
  • Save fredriccliver/dd06452a72fb6a29dc97f9106429d1d8 to your computer and use it in GitHub Desktop.
Save fredriccliver/dd06452a72fb6a29dc97f9106429d1d8 to your computer and use it in GitHub Desktop.
@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