firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Auth user name change after a few hours to the one before after change.

Open jesus-mg-ios opened this issue 1 year ago • 5 comments

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!

jesus-mg-ios avatar Sep 03 '24 18:09 jesus-mg-ios

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 03 '24 18:09 google-oss-bot

The server keeps the good one displayName. If you logout the user and re-authenticate it currentUser property comes back to the good one ...

jesus-mg-ios avatar Sep 04 '24 10:09 jesus-mg-ios

Also trying to reload the currentUser property doesn't work.

jesus-mg-ios avatar Sep 04 '24 21:09 jesus-mg-ios

Hi @jesus-mg-ios, just to confirm, is this reverting happening in the iOS app, the extension, or both?

ncooke3 avatar Nov 20 '24 17:11 ncooke3

@ncooke3 it happens in the app. The Extension does not use it.

jesus-mg-ios avatar Nov 20 '24 19:11 jesus-mg-ios

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.

ncooke3 avatar Oct 03 '25 20:10 ncooke3