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

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

public virtual 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.

Remarks

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

See Also