firebase-ios-sdk
firebase-ios-sdk copied to clipboard
Auth user name change after a few hours to the one before after change.
Description
After a user authenticated through the Apple authentication provider changes their username in our Application, sometimes the username reverts to its previous value after a few hours.
Reproducing the issue
Change the name with
func updateName(userName: String) {
let changeRequest = currentUser?.createProfileChangeRequest()
changeRequest?.displayName = userName
changeRequest?.commitChanges()
}
being currentUser the Auth property
Firebase SDK Version
10.25.0
Xcode Version
15.2
Installation Method
Swift Package Manager
Firebase Product(s)
Authentication
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
The server keeps the good one displayName. If you logout the user and re-authenticate it currentUser property comes back to the good one ...
Also trying to reload the currentUser property doesn't work.
Hi @jesus-mg-ios, just to confirm, is this reverting happening in the iOS app, the extension, or both?
@ncooke3 it happens in the app. The Extension does not use it.
Hi there, closing due to inactivity. If this is still an issue on the lates major version, pleas let me know and I'm happy to reopen.