The Swift code is as follows
let changeRequest=FIRAuth.auth()?currentUser?profileChangeRequest()
changeRequest ?.photoURL=photoURL
changeRequest ?.commitChanges(){(error)in
// ...
}
There is a code for managing users of Firebase documents.
Check it out for the latest information.
https://firebase.google.com/docs/auth/ios/manage-users?hl=ja#update_a_users_profile
© 2024 OneMinuteCode. All rights reserved.