-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
blocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: authresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.type: enhancementNew feature or requestNew feature or requesttype: missing-featureA feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.
Description
FirebaseAuth only provides onAuthStateChanged, a stream emitting each time the user signIn or signOut.
It should also provides onIdTokenChanged which includes sign-in, sign-out, and token refresh events as a way to get token changes.
https://firebase.google.com/docs/reference/js/firebase.auth.Auth#on-idtoken-changed
Right now sending a token to a server requires having to call getIdToken to be sure it's still valid, I'd like a stream of tokens instead because streams rocks!
ElasticBottle, cacianokroth, thubv, lukepighetti, tantv-2058 and 1 more
Metadata
Metadata
Assignees
Labels
blocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)A bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: authresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.type: enhancementNew feature or requestNew feature or requesttype: missing-featureA feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.