Skip to content

FUIAnonymousAuth - Missing ProgressView causing simultaneous auth attempts  #1174

Open
@cmederos

Description

@cmederos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions