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.RefreshToken Property

Returns the refresh token that the authorization agent uses.

#Declaration

Delphi
property RefreshToken: string read;

#Property Value

Type
string

#Remarks

The authorization agent uses the refresh token to update the account access token when it expires. Unlike the short-lived access tokens, refresh tokens can last for months. The refresh token’s actual expiration time depends on settings of the OAuth 2.0 authorization server that issued it.

A FinishAuthorization procedure call sets the RefreshToken property’s underlying field to an empty string. The refresh token remains valid until it expires according to the current authorization server rules, and you can assign it to the authorization agent by calling the Load procedure. To revoke the refresh token on demand, you can call the RevokeAccessToken procedure if the OAuth 2.0 authorization server supports token revocation requests.

See Also