HybridFlowResult class

Represents the result of running a browser based hybrid flow.

This member is deprecated. Use requestAccessCredentials or requestAuthorizationCode instead.

The credentials field holds credentials which can be used on the client side. The newClient function can be used to make a new authenticated HTTP client using these credentials.

The authorizationCode can be sent to the server, which knows the "client secret" and can exchange it with long-lived access credentials.

See the obtainAccessCredentialsViaCodeExchange function in the googleapis_auth.auth_io library for more details on how to use the authorization code.

Annotations
  • @Deprecated('This member is deprecated. Use requestAccessCredentials or ' 'requestAuthorizationCode instead.')

Constructors

HybridFlowResult(BrowserOAuth2Flow _flow, AccessCredentials credentials, String? authorizationCode)

Properties

authorizationCode String?
The authorization code received from the authorization endpoint.
final
credentials AccessCredentials
Access credentials for making authenticated HTTP requests.
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

newClient() AutoRefreshingAuthClient
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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