onIdTokenChanged property
Sends events for changes to the signed-in user's ID token, which includes sign-in, sign-out, and token refresh events.
This method has the same behavior as onAuthStateChanged had prior to 4.0.0.
If the value is null
, there is no signed-in user.
Implementation
Stream<User?> get onIdTokenChanged => _idTokenChangedController.stream;