tokenStream property

Stream<Token?> get tokenStream

Reactive stream of token changes.

Emits the new Token after a successful refresh or setTokens call. Emits null after clear or an unauthorized refresh failure.

Does not replay the current value to late subscribers — combine with peek to seed your state management layer:

final initial = await keeper.peek();
keeper.tokenStream.listen(...);

Implementation

Stream<Token?> get tokenStream => _tokenStreamController.stream;