Skip to content

[firebase_auth] onIdTokenChanged stream is missing #2319

@derfurth

Description

@derfurth

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting 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)plugin: authresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.type: enhancementNew feature or requesttype: missing-featureA feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions