Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxOAuth2AuthorizationAgent.RefreshAccessToken Method

Updates the account access token.

#Declaration

Delphi
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