google_identity_services_web 0.3.1+5 google_identity_services_web: ^0.3.1+5 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.1+5 #
- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
- Cleans up documentation of callbacks in
CodeClientConfig
,TokenClientConfig
,onGoogleLibraryLoad
, andrevoke
to indicate they only accept Dart functions and not JS functions.
0.3.1+4 #
- Restores support for Dart
^3.3.0
.
0.3.1+3 #
- Updates
README.md
to reflect modernindex.html
script tag placement.
0.3.1+2 #
- Adds support for
web: ^1.0.0
. - Updates SDK version to Dart
^3.4.0
. Flutter^3.22.0
.
0.3.1+1 #
- Uses
TrustedTypes
fromweb: ^0.5.1
.
0.3.1 #
- Updates web code to package
web: ^0.5.0
. - Updates SDK version to Dart
^3.3.0
. Flutter^3.19.0
.
0.3.0+2 #
- Adds
fedcm_auto
toCredentialSelectBy
enum. - Adds
unknown_reason
to allMoment*Reason
enums.
0.3.0+1 #
- Corrects 0.3.0 changelog entry about the minimum Flutter/Dart dependencies.
0.3.0 #
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
- Migrates from
package:js
/dart:html
topackage:web
so 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
allowInterop
in all callbacks. id
:- Changes type:
IdConfiguration.intermediate_iframe_close_callback
toVoidFn?
.
- Adds:
fedcm
toCredentialSelectBy
enum. - Fixes typo in
storeCredential
callback
positional 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_uri
toUri?
.scope
inCodeClientConfig
andCodeResponse
toList<String>
.CodeResponse.code
andstate
toString?
(now nullable).scope
inTokenClientConfig
,OverridableTokenClientConfig
, andTokenResponse
toList<String>
.- The following
TokenResponse
getters are now nullable:access_token
,expires_in
,hd
,prompt
,token_type
, andstate
. - The
error_callback
functions now receive aGoogleIdentityServicesError
parameter, instead ofObject
.
- Adds:
include_granted_scopes
andenable_granular_consent
toCodeClientConfig
.include_granted_scopes
andenable_granular_consent
toTokenClientConfig
.enable_granular_consent
toOverridableTokenClientConfig
.message
toGoogleIdentityServicesError
.
- Fixes:
- Assert that
scope
is not empty when used to createCodeClientConfig
,TokenClientConfig
, andOverridableTokenClientConfig
instances. - Deprecated
enable_serial_consent
.
- Assert that
- Removes:
- Removes the need to explicitly
0.2.2 #
- Adds the following new fields to
IdConfiguration
:login_hint
,hd
as auto-select hints for users with multiple accounts/domains.use_fedcm_for_prompt
so 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
renderButton
API so any JS-Interop Object can be itstarget
. - Exposes the
Button*
configuration enums, so the rendered button can be configured.
0.2.0 #
- Adds
renderButton
API 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.md
with the new way ofimport
ing the desired libraries.
0.1.1 #
- Add optional
scope
toOverridableTokenClientConfig
object. - Mark some callbacks as optional properly.
0.1.0 #
- Initial release.