Table of Contents

Method FromText

Namespace
MailFathom.Domain.Accounts
Assembly
MailFathom.Domain.dll

FromText(string)

Encodes a token the authorization server issued as text.

public static MailboxRefreshToken FromText(string material)

Parameters

material string

The token as it arrived in the token response.

Returns

MailboxRefreshToken

The owned token.

Remarks

The source string cannot be erased, so this overload is reachable only where the value already arrived as one — a JSON response body is the case that exists.

Exceptions

ArgumentException

Thrown when material is empty or blank.