Skip to content

Instantly share code, notes, and snippets.

@thatswiftguy
Last active May 15, 2021 13:30
Show Gist options
  • Save thatswiftguy/1d700e1534e1a714f7cb2fdb29c8a666 to your computer and use it in GitHub Desktop.
Save thatswiftguy/1d700e1534e1a714f7cb2fdb29c8a666 to your computer and use it in GitHub Desktop.
func singUp(){
Auth.auth().createUser(withEmail: email, password: password) { (result, error) in
guard error == nil else {
print(error!.localizedDescription)
return
}
print("WE have Signed Up")
}
}
func signIn(){
Auth.auth().signIn(withEmail: email, password: password) { (result, error) in
guard error == nil else {
print(error!.localizedDescription)
return
}
print("We are Loged In")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment