Last active
January 18, 2017 15:00
-
-
Save ramamilaneh/73ec84488788345cc72949c7699298eb to your computer and use it in GitHub Desktop.
This file contains 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
func logout() { | |
do{ | |
try FIRAuth.auth()?.signOut() | |
} catch let signOutError as NSError { | |
print ("Error signing out: %@", signOutError) | |
} | |
NotificationCenter.default.post(name: .closeMainVC, object: nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment