Skip to main content

TdxOAuth2AuthorizationAgent.RefreshAccessToken Method

Updates the account access token.

Declaration

function RefreshAccessToken: Boolean;

Returns

Type
Boolean

Remarks

The authorization agent automatically updates the access token once it expires. You can call this function to attempt to receive a new access token on demand. The RefreshAccessToken function returns True if it successfully updates the access token; otherwise, False.

An attempt to update the access token results in an authorization error if the OAuth 2.0 server has revoked the refresh token.

Note

Calling the RefreshAccessToken function has no effect if the authorization agent has no refresh token (that is, the RefreshToken property returns an empty string).

See Also