You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[gsi_web] Do not initialize CodeClient if scopes are empty. (flutter#5537)
When initializing a `CodeClient`, it is mandatory to pass at least one `scope` (or the JS initialization will crash).
This PR ensures that the `CodeClient` is not created unless `initialScopes.isNotEmpty`, and lets the user know when attempting to use said client that it hasn't been initialized properly.
## Issues
* Fixes: flutter#139382
* Fixes: flutter#62474
* Closes: flutter/cocoon#3304 (makes this PR unneeded)
## Tests
* Tested locally with `cocoon`.
0 commit comments