oauth2 library
Enums
- GoogleIdentityServicesErrorType
-
The
typeof the error object passed into theerror_callbackfunction. - UxMode
- Use this enum to set the UX flow used by the Sign In With Google button. The default value is popup.
Extension Types
- CodeClient
- A client that can start the OAuth 2.0 Code UX flow.
- CodeClientConfig
-
The configuration object for the
initCodeClientmethod. - CodeResponse
- The object passed as the parameter of your CodeClientCallbackFn.
- GoogleAccountsOauth2
-
The Dart definition of the
google.accounts.oauth2global. - GoogleIdentityServicesError
-
An error returned by
initTokenClientorinitDataClient. - OverridableTokenClientConfig
-
The overridable configuration object for the
TokenClientExtension.requestAccessTokenmethod. - TokenClient
- A client that can start the OAuth 2.0 Token UX flow.
- TokenClientConfig
-
The configuration object for the
initTokenClientmethod. - TokenResponse
- The object passed as the parameter of your TokenClientCallbackFn.
- TokenRevocationResponse
-
The parameter passed to the
callbackof therevokefunction.
Properties
- oauth2 → GoogleAccountsOauth2
-
Binding to the
google.accounts.oauth2JS global.no setter
Typedefs
- CodeClientCallbackFn = void Function(CodeResponse response)
-
The type of the
callbackfunction passed to CodeClientConfig. - ErrorCallbackFn = void Function(GoogleIdentityServicesError? error)
-
The type of the
error_callbackin both oauth2 initXClient calls. - RevokeTokenDoneFn = void Function(TokenRevocationResponse response)
-
The signature of the
donefunction forrevoke. - TokenClientCallbackFn = void Function(TokenResponse response)
-
The type of the
callbackfunction passed to TokenClientConfig.