Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
OAuthRefreshResult Class
Stores the result of an AuthProviderPluginClass
refresh method. OAuth authentication flow provides a refresh token that can be used to get a new
access token. Access tokens have a limited lifetime as specified by the session timeout value.
When an access token expires, use a refresh token to get a new access token.
Namespace
Usage
The OAuthRefreshResult class contains the parameters, accessToken, refreshToken, and error, all of which are of type string. For a code example, see .
OAuthRefreshResult Constructors
The following are constructors for OAuthRefreshResult.
OAuthRefreshResult(accessToken, refreshToken, error)
OAuthRefreshResult(accessToken, refreshToken)
OAuthRefreshResult Properties
The following are properties for OAuthRefreshResult.
error
Error that occurs when a user unsuccessfully attempts to authenticate
with the custom authentication provider.
Signature
public String error {get; set;}
Property Value
Type: String