Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jesus-mg-ios opened this issue Sep 3, 2024 · 5 comments
Open
Assignees

Comments

@jesus-mg-ios
Copy link

jesus-mg-ios commented Sep 3, 2024

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!
@google-oss-bot
Copy link

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

@jesus-mg-ios
Copy link
Author

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
Copy link
Author

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

@ncooke3
Copy link
Member

ncooke3 commented Nov 20, 2024

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

@jesus-mg-ios
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants