[firebase_auth]: An error occurs when I try to access the claims of an authenticated user #12663
Open
1 task done
Labels
Needs Attention
This issue needs maintainer attention.
platform: web
Issues / PRs which are specifically for web.
plugin: auth
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Web
Description
When accessing an authenticated user's payload declarations in flutter web, I receive the following error message:
══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
The following TypeErrorImpl was thrown:
Unexpected null value.
When the exception was thrown, this was the stack:
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 806:18 nullCheck
packages/firebase_auth_web/firebase_auth_web.dart 81:41
dart-sdk/lib/async/zone.dart 1407:47 _rootRunUnary
dart-sdk/lib/async/zone.dart 1308:19 runUnary
dart-sdk/lib/async/zone.dart 1217:7 runUnaryGuarded
dart-sdk/lib/async/stream_impl.dart 339:5 [_sendData]
dart-sdk/lib/async/stream_impl.dart 271:7 [_add]
dart-sdk/lib/async/stream_pipe.dart 123:11 [_add]
dart-sdk/lib/async/stream_pipe.dart 218:9 [_handleData]
dart-sdk/lib/async/stream_pipe.dart 153:5 [_handleData]
dart-sdk/lib/async/zone.dart 1415:13 _rootRunUnary
dart-sdk/lib/async/zone.dart 1308:19 runUnary
dart-sdk/lib/async/zone.dart 1217:7 runUnaryGuarded
dart-sdk/lib/async/stream_impl.dart 339:5 [_sendData]
dart-sdk/lib/async/stream_impl.dart 271:7 [_add]
dart-sdk/lib/async/broadcast_stream_controller.dart 377:24 [_sendData]
dart-sdk/lib/async/broadcast_stream_controller.dart 244:5 add
packages/firebase_auth_web/src/interop/auth.dart 449:41
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 550:37 _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39 dcall
https://www.gstatic.com/firebasejs/10.10.0/firebase-auth.js 1:5962
https://www.gstatic.com/firebasejs/10.10.0/firebase-auth.js 1:7102
════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞═════════════════════════════════════════════════════════
The following _TypeError was thrown:
TypeError: Instance of 'LinkedMap<Object?, Object?>': type 'LinkedMap<Object?, Object?>' is not a
subtype of type 'Map<String, dynamic>'
When the exception was thrown, this was the stack:
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
.
.
.
Reproducing the issue
Firebase Core version
2.30.0
Flutter Version
3.19.5
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
Problem similar to:
Fixes: #12572
The text was updated successfully, but these errors were encountered: