Interface IOAuthTokenProvider
Provides methods to obtain and manage access tokens for authenticated API requests.
public interface IOAuthTokenProvider
Methods
GetTokenAsync(CancellationToken)
Gets a valid access token for the specified scopes.
UniTask<OAuthToken> GetTokenAsync(CancellationToken ct = default)
Parameters
ctCancellationTokenCancellation token to cancel the operation.
Returns
- UniTask<OAuthToken>
A valid access token as a string. If the current token is still valid and covers the requested scopes, it should be returned. Otherwise, a new token should be fetched and returned.