OAuthTokenClient class

Constructors

OAuthTokenClient.new()

Properties

apiClient API
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateAuthUrl({required InitiateAuthorisationRequest params}) String
Generates the authorisation URL for the user to visit.
getAccessToken({required OAuthTokenRequest params, void callback(RazorpayApiException?, Response<OAuthTokenResponse>?)?}) Future<Response<OAuthTokenResponse>>
Exchanges the authorisation code for an access token.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshToken({required OAuthTokenRequest params, void callback(RazorpayApiException?, Response<OAuthTokenResponse>?)?}) Future<Response<OAuthTokenResponse>>
Refreshes an expired access token using a refresh token.
revokeToken({required OAuthTokenRequest params, void callback(RazorpayApiException?, Response<OAuthRevokeTokenResponse>?)?}) Future<Response<OAuthRevokeTokenResponse>>
Revokes an access or refresh token.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

AUTH_HOST_URL → const String