Sends a request to refresh the access token.
Namespace: Nemiro.OAuth.ClientsAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax
Parameters
- accessToken
- Type: Nemiro.OAuth AccessToken
May contain an access token, which should be refreshed.
- returnUrl
- Type: System String
Callback address that was used in obtaining the access token.
Return Value
Type: AccessTokenExceptions
Exception | Condition |
---|---|
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. |
RequestException | Error during execution of a web request. |
ArgumentNullException | An exception occurs if there is no authorization code. |
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.
![]() | To update the access token, you must specify the return address that was used in obtaining the access token. |
See Also