onSessionUpdated property

Stream<Session> get onSessionUpdated

Emits the refreshed session every time an expired access token is renewed, so the owner of the credentials can re-persist them.

A fromSession instance refreshes automatically, and session then holds the new credentials — but nothing otherwise tells the caller to read it back. Because refresh tokens are single-use, persisting the session originally passed in would store a spent refresh token, and the next run would restore a session that can no longer be refreshed.

Silent on OAuth-backed instances; use oAuthSessionManager.onSessionUpdated for those.

Implementation

Stream<core.Session> get onSessionUpdated;