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
When using the method token of method_channel_flutter_appauth.dart the tokenAdditionalParameters attribute of the returned TokenResponse throws following Exception, as soon as I use it:
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: type 'int' is not a subtype of type 'String' in type cast
#0 CastMap.forEach.<anonymous closure> (dart:_internal/cast.dart:288:25)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
#2 CastMap.forEach (dart:_internal/cast.dart:287:13)
#3 MapBase.mapToString (dart:collection/maps.dart:35:9)
#4 MapMixin.toString (dart:collection/maps.dart:192:32)
#5 _StringBase._interpolate (dart:core-patch/string_patch.dart:845:19)
The cause for this problem is the cast in this line
If you could then that would be great. I don't think I've done it I've setup a template for this repo yet but can you prefix the PR's title with [flutter_appauth_platform_interface] as well?
When using the method
token
ofmethod_channel_flutter_appauth.dart
thetokenAdditionalParameters
attribute of the returned TokenResponse throws following Exception, as soon as I use it:The cause for this problem is the cast in this line
flutter_appauth/flutter_appauth_platform_interface/lib/src/method_channel_flutter_appauth.dart
Line 65 in 1230109
it should be cast to
result['tokenAdditionalParameters']?.cast<String, dynamic>());
.The text was updated successfully, but these errors were encountered: