google_identity_services_web 0.3.0
google_identity_services_web: ^0.3.0 copied to clipboard
A Dart JS-interop layer for Google Identity Services. Google's new sign-in SDK for Web that supports multiple types of credentials.
0.3.0 #
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
- Migrates from
package:js/dart:htmltopackage:webso this package can compile to WASM. - Performs the following breaking API changes (in bold) and other fixes to
align with the published GIS SDK:
- Removes the need to explicitly
allowInteropin all callbacks. id:- Changes type:
IdConfiguration.intermediate_iframe_close_callbacktoVoidFn?.
- Adds:
fedcmtoCredentialSelectByenum. - Fixes typo in
storeCredentialcallbackpositional parameter name.
- Changes type:
oauth2:- Removes:
CodeClientConfig.auto_select,hint(nowlogin_hint), andhosted_domain(nowhd).TokenClientConfig.hint(nowlogin_hint) andhosted_domain(nowhd).OverridableTokenClientConfig.hint(nowlogin_hint).
- Changes types:
CodeClientConfig.redirect_uritoUri?.scopeinCodeClientConfigandCodeResponsetoList<String>.CodeResponse.codeandstatetoString?(now nullable).scopeinTokenClientConfig,OverridableTokenClientConfig, andTokenResponsetoList<String>.- The following
TokenResponsegetters are now nullable:access_token,expires_in,hd,prompt,token_type, andstate. - The
error_callbackfunctions now receive aGoogleIdentityServicesErrorparameter, instead ofObject.
- Adds:
include_granted_scopesandenable_granular_consenttoCodeClientConfig.include_granted_scopesandenable_granular_consenttoTokenClientConfig.enable_granular_consenttoOverridableTokenClientConfig.messagetoGoogleIdentityServicesError.
- Fixes:
- Assert that
scopeis not empty when used to createCodeClientConfig,TokenClientConfig, andOverridableTokenClientConfiginstances. - Deprecated
enable_serial_consent.
- Assert that
- Removes:
- Removes the need to explicitly
0.2.2 #
- Adds the following new fields to
IdConfiguration:login_hint,hdas auto-select hints for users with multiple accounts/domains.use_fedcm_for_promptso FedCM can be enabled.
0.2.1+1 #
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
0.2.1 #
- Relaxes the
renderButtonAPI so any JS-Interop Object can be itstarget. - Exposes the
Button*configuration enums, so the rendered button can be configured.
0.2.0 #
- Adds
renderButtonAPI toid.dart. - Breaking Change: Makes JS-interop API more
dart2wasm-friendly.- Removes external getters for function types
- Introduces an external getter for the whole libraries instead.
- Updates
README.mdwith the new way ofimporting the desired libraries.
0.1.1 #
- Add optional
scopetoOverridableTokenClientConfigobject. - Mark some callbacks as optional properly.
0.1.0 #
- Initial release.