Interface IOAuth2Credentials
An interface describing the provision of OAuth2 based token credentials.
Namespace: WhenFresh.Api.Client.Authentication
Assembly: WhenFresh.Api.Client.dll
Syntax
public interface IOAuth2Credentials
Methods
GetTokenAsync(SendRequestDelegate, CancellationToken)
An interface describing the provision of OAuth2 based token credentials.
Declaration
Task<Token> GetTokenAsync(SendRequestDelegate client, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SendRequestDelegate | client | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<Token> |
