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

FUIAnonymousAuth - Missing ProgressView causing simultaneous auth attempts #1174

Open
cmederos opened this issue Nov 20, 2023 · 1 comment
Open

Comments

@cmederos
Copy link

cmederos commented Nov 20, 2023

Step 2: Describe your environment

Swift (called from SwiftUI UIViewControllerRepresentable)
iOSVersion 17.0
FirebaseAnonymousAuthUI (13.1.0)
FirebaseUI 13.1.0
CocoaPods 1.14.2

Step 3: Describe the problem:

The guest sign in for the anonymous provider in the pre-built UI does not include a progress indication when signing up. For comparison, other providers like email include a progress spinner while firebase is creating the user and signing them in.

Consequently, the app looks like it's hanging until the first response is received by the AuthStateDidChangeListener.

Additionally, the rest of the UI is still enabled while the sign-in is processing. This means that users usually click on the same sign-in button again, causing multiple sign-ins to process at the same time.

Thanks for looking into it!

Steps to reproduce:

  1. include FUIAnonymousAuth() in configured AuthUI provider
  2. sign up using the "Sign in as guest" button in the pre-built UI

Observed Results:

There are no updates to the UI for several seconds. After the duration has passed, an auth state change event is eventually passed and handled by the other parts of my app.

Expected Results:

A progress indicator of some kind should be displayed while the firebase user is being created. The FUIEmailAuth provider includes such a progress indicator for example

@cmederos
Copy link
Author

cmederos commented Dec 1, 2023

Hi there - any update or acknowledgement of the issue? I'd say it's a pretty major bug for the iOS UI

@cmederos cmederos changed the title FUIAnonymousAuth - No ProgressView on signup FUIAnonymousAuth - Missing ProgressView causing simultaneous auth attempts Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant