Table of Contents

Method GetSettingsAsync

Namespace
MailFathom.Infrastructure.Mail.OAuth
Assembly
MailFathom.Infrastructure.dll

GetSettingsAsync(string, CancellationToken)

Gets token endpoint settings for one local account identifier, resolving its client secret and refresh token.

Task<MailOAuthAccountSettings> GetSettingsAsync(string accountId, CancellationToken cancellationToken)

Parameters

accountId string

The local account identifier.

cancellationToken CancellationToken

Cancels the secret resolution.

Returns

Task<MailOAuthAccountSettings>

The settings, whose material the caller must dispose when its operation ends.

Exceptions

InvalidOperationException

Thrown when the account configured no OAuth block, which startup validation already refuses.