[ios]Swift firebase auth displayname, photoURL 바꾸는 방법
// update displayName, photoURL
private func loadFirebaseCommitChanges()
{
let changeRequest = Auth.auth().currentUser?.createProfileChangeRequest()
changeRequest?.displayName = "nickname"
changeRequest?.photoURL = URL(string: "http://naver.com")
changeRequest?.commitChanges(completion: { (error) in
if let error = error
{
if let errorCode : AuthErrorCode = AuthErrorCode(rawValue: error._code)
{
print("-> error -> \(error.localizedDescription) -> code -> \(errorCode.rawValue)")
}
}
else
{
// success
}
})
}
'ios,swift' 카테고리의 다른 글
[ios]swift firebase auth email login방법 (0) | 2020.03.30 |
---|---|
[ios]swift fireabse auth email 회원가입 방법 (0) | 2020.03.30 |
[ios]firebase auth error site (0) | 2020.03.27 |
[ios]swift firebase auth login user delete방법 (0) | 2020.03.20 |
[ios]swift firebase Auth error code 확인하는방법 (0) | 2020.03.18 |