Skip to content

Retrieve Provider from SignInScreen actions #75

@lesnitsky

Description

@lesnitsky

Discussed in #74

Originally posted by jeanmatthieud August 24, 2023
Hi,

I use a SignInScreen, and I want to be able to retrieve the current provider during AuthStateChangeAction.

eg.:

SignInScreen(
  // Providers are set with FirebaseUIAuth.configureProviders()
  // providers: [],
  actions: [
    AuthStateChangeAction<AuthFailed>((context, state) {
      // I want to be able to manage the AuthFailed state according to the provider
      // or even call a provider function to recover from the error
    }),
  ],
)

How can we know which provider is linked to the current AuthStateChangeAction callback?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions