Method AuthorizeOAuthAsync
AuthorizeOAuthAsync(CancellationToken)
Call to preauthorize when using OAuth authorization. This will cause a browser to open a Google authorization page after which the token will be stored in IDataStore so that this does not need to be done each time. If this is not called then the first time Service is called it will be performed then.
Declaration
public Task<UserCredential> AuthorizeOAuthAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Token that can be used to cancel the task prematurely. |
Returns
Type | Description |
---|---|
Task<UserCredential> | The authorization Task that can be monitored. |