Closed lucasbarross closed 2 years ago
You must read this: Receiver Type and try to avoid heap allocations and gc time in this project. I see a lot of pointers that should be just values.
accessToken := tokenProvider.Refresh()
What should I do with accessToken?
accessToken := tokenProvider.Refresh()
What should I do with accessToken?
@faustikle You should use the ExpiresAt information to schedule the next refresh.
time.Sleep(time.Until(accessToken.GetExpiresAt()))
This PR allows clients to choose which type of token providing method will be used by the SDK.
AutoRefreshTokenProvider will be used as a default.
ManualRefreshTokenProvider usage example: