Expand description
Defines a TokenFetcher
struct that will automatically refresh tokens
at some configured time prior to the token’s expiration.
Structs
- A
TokenFetcher
stores aToken
on first fetch and will continue returning that token until it needs to be refreshed, as determined by the token’sexpires_in
field and the configuredrefresh_buffer
.