Skip to content

feat: OAuth\AuthenticatedHttpClient: Expose if the token was refreshed #3

@ralflang

Description

@ralflang

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions