firebase / FirebaseUI-Flutter

Apache License 2.0
99 stars 86 forks source link

Retrieve Provider from SignInScreen actions #75

Closed lesnitsky closed 8 months ago

lesnitsky commented 12 months ago

Discussed in https://github.com/firebase/FirebaseUI-Flutter/discussions/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.: ```dart SignInScreen( // Providers are set with FirebaseUIAuth.configureProviders() // providers: [], actions: [ AuthStateChangeAction((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?