AuthenticatedHttpClient: Expose if token was refreshed
AuthenticatedHttpClient transparently refreshes tokens on 401 and exposes
the possibly updated TokenSet via getTokenSet(). Callers that persist
tokens need to know whether to write back.
Capability:
- A
wasRefreshed(): bool method (or similar) so callers can avoid
unnecessary writes when the token didn't change.
This offloads chores from callers: They don't need to proactively compare token strings and they can avoid unnecessary noop updates.
AuthenticatedHttpClient: Expose if token was refreshed
AuthenticatedHttpClienttransparently refreshes tokens on 401 and exposesthe possibly updated
TokenSetviagetTokenSet(). Callers that persisttokens need to know whether to write back.
Capability:
wasRefreshed(): boolmethod (or similar) so callers can avoidunnecessary writes when the token didn't change.
This offloads chores from callers: They don't need to proactively compare token strings and they can avoid unnecessary noop updates.