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
materialstringThe 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
materialis empty or blank.