mogol / flutter_secure_storage

A Flutter plugin to store data in secure storage
https://pub.dartlang.org/packages/flutter_secure_storage
BSD 3-Clause "New" or "Revised" License
1.09k stars 340 forks source link

[Web] Error: TypeError: 86400: type 'int' is not a subtype of type 'Iterable<dynamic>' #688

Closed jlambright closed 3 months ago

jlambright commented 3 months ago

All morning things were going well until I hit this error message out of nowhere.

Error: TypeError: 86400: type 'int' is not a subtype of type 'Iterable<dynamic>' dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw_ dart-sdk/lib/_internal/js_shared/lib/rti.dart 1385:3 _failedAsCheck dart-sdk/lib/_internal/js_shared/lib/rti.dart 1363:3 _generalAsCheckImplementation dart-sdk/lib/core/uri.dart 2382:18 <fn> dart-sdk/lib/_internal/js_dev_runtime/private/linked_hash_map.dart 21:7 forEach dart-sdk/lib/core/uri.dart 2378:20 _makeQueryFromParametersDefault dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 937:12 _makeQueryFromParameters dart-sdk/lib/core/uri.dart 2353:12 _makeQuery dart-sdk/lib/core/uri.dart 4616:20 replace packages/oidc_core/src/endpoints/authorize/req.dart 286:70 generateUri packages/oidc_web/oidc_web.dart 182:19 getAuthorizationResponse dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5 _async packages/oidc_web/oidc_web.dart 158:58 getAuthorizationResponse packages/oidc/src/facade.dart 33:24 getPlatformAuthorizationResponse dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5 _async packages/oidc/src/facade.dart 27:73 getPlatformAuthorizationResponse packages/oidc/src/managers/user_manager.dart 214:42 _tryGetAuthResponse dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5 _async packages/oidc/src/managers/user_manager.dart 207:40 [_tryGetAuthResponse] packages/oidc/src/managers/user_manager.dart 164:12 loginAuthorizationCodeFlow dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50 <fn> dart-sdk/lib/async/zone.dart 1661:54 runUnary dart-sdk/lib/async/future_impl.dart 162:18 handleValue dart-sdk/lib/async/future_impl.dart 838:44 handleValueCallback dart-sdk/lib/async/future_impl.dart 867:13 _propagateToListeners dart-sdk/lib/async/future_impl.dart 643:5 [_completeWithValue] dart-sdk/lib/async/future_impl.dart 713:7 callback dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7 <fn> Application finished.

Any guidance/insight that can be provided will be appreciated.

jlambright commented 3 months ago

This seemed to be caused when the maxAge property of the oidc package's OidcUserManagerSettings class was set to greater than 1 hour.