TdxOAuth2AuthorizationAgent.RefreshToken Property
Returns the refresh token that the authorization agent uses.
Declaration
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.