Skip to content

Retrieve Provider from SignInScreen actions #75

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

Closed
lesnitsky opened this issue Aug 24, 2023 Discussed in #74 · 0 comments · Fixed by #207
Closed

Retrieve Provider from SignInScreen actions #75

lesnitsky opened this issue Aug 24, 2023 Discussed in #74 · 0 comments · Fixed by #207
Assignees
Labels
auth enhancement New feature or request

Comments

@lesnitsky
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant