Skip to content

Commit 0c1e1c3

Browse files
committed
Make scope required again, otherwise the SDK crashes at init.
1 parent f88491f commit 0c1e1c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/google_identity_services_web/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* `enable_granular_consent` to `OverridableTokenClientConfig`.
3232
* `message` to `GoogleIdentityServicesError`.
3333
* Fixes:
34-
* Assert that `CodeClientConfig.scope` is not empty when creating an instance.
35-
* `TokenClientConfig.scope` is no longer `required`.
34+
* Assert that `scope` is not empty when used to create `CodeClientConfig`,
35+
`TokenClientConfig`, and `OverridableTokenClientConfig` instances.
3636
* Deprecated `enable_serial_consent`.
3737

3838
## 0.2.2

packages/google_identity_services_web/lib/src/js_interop/google_accounts_oauth2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ abstract class TokenClientConfig {
250250
return TokenClientConfig._toJS(
251251
client_id: client_id.toJS,
252252
callback: callback.toJS,
253-
scope: scope?.join(' ').toJS,
253+
scope: scope.join(' ').toJS,
254254
include_granted_scopes: include_granted_scopes?.toJS,
255255
prompt: prompt?.toJS,
256256
enable_granular_consent: enable_granular_consent?.toJS,

0 commit comments

Comments
 (0)