oauth2 library

Classes

CodeClient
A client that can start the OAuth 2.0 Code UX flow.
CodeClientConfig
The configuration object for the initCodeClient method.
CodeResponse
The object passed as the parameter of your CodeClientCallbackFn.
GoogleAccountsOauth2
The Dart definition of the google.accounts.oauth2 global.
GoogleIdentityServicesError
An error returned by initTokenClient or initDataClient.
OverridableTokenClientConfig
The overridable configuration object for the TokenClientExtension.requestAccessToken method.
TokenClient
A client that can start the OAuth 2.0 Token UX flow.
TokenClientConfig
The configuration object for the initTokenClient method.
TokenResponse
The object passed as the parameter of your TokenClientCallbackFn.
TokenRevocationResponse
The parameter passed to the callback of the revoke function.

Enums

GoogleIdentityServicesErrorType
The type of the error object passed into the error_callback function.
UxMode
Use this enum to set the UX flow used by the Sign In With Google button. The default value is popup.

Extensions

CodeClientExtension
The methods available on the CodeClient.
CodeResponseExtension
The fields that are contained in the code response object.
GoogleAccountsOauth2Extension
The google.accounts.oauth2 methods
GoogleIdentityServicesErrorExtension
Methods of the GoogleIdentityServicesError object.
TokenClientExtension
The methods available on the TokenClient.
TokenResponseExtension
The fields that are contained in the code response object.
TokenRevocationResponseExtension
The fields that are contained in the TokenRevocationResponse object.

Properties

oauth2 GoogleAccountsOauth2
Binding to the google.accounts.oauth2 JS global.
no setter

Typedefs

CodeClientCallbackFn = void Function(CodeResponse response)
The type of the callback function passed to CodeClientConfig.
ErrorCallbackFn = void Function(GoogleIdentityServicesError? error)
The type of the error_callback in both oauth2 initXClient calls.
RevokeTokenDoneFn = void Function(TokenRevocationResponse response)
The signature of the done function for revoke.
TokenClientCallbackFn = void Function(TokenResponse response)
The type of the callback function passed to TokenClientConfig.