MailRuClient RefreshToken Method Nemiro.OAuth
Sends a request to refresh the access token.

Namespace: Nemiro.OAuth.Clients
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax

public override AccessToken RefreshToken(
	AccessToken accessToken = null
)

Parameters

accessToken (Optional)
Type: Nemiro.OAuth AccessToken
May contain an access token, which should be refreshed.

Return Value

Type: AccessToken
Exceptions

ExceptionCondition
NotSupportedException

Provider does not support refreshing the access token, or the method is not implemented.

Use the property SupportRefreshToken, to check the possibility of calling this method.

AccessTokenException

Access token is not found or is not specified.

-or-

refresh_token value is empty.

RequestExceptionError during execution of a web request.
Remarks

If accessToken parameter is not specified, it will use the current access token from the same property of the current class instance.

Token must contain the refresh_token, which was received together with the access token.

See Also