Skip to content

Commit 2b84feb

Browse files
fix(auth, web): invocation of unsubscribe callback for dart2wasm compatibility. (#12669)
1 parent f9f46a5 commit 2b84feb

File tree

1 file changed

+1
-1
lines changed
  • packages/firebase_auth/firebase_auth_web/lib/src/interop

1 file changed

+1
-1
lines changed

packages/firebase_auth/firebase_auth_web/lib/src/interop/auth.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class Auth extends JsObjectWrapper<auth_interop.AuthJsImpl> {
383383

384384
await completer.future;
385385

386-
await (unsubscribe.dartify()! as Future<void> Function())();
386+
await (unsubscribe.callAsFunction() as JSPromise<JSAny?>?)?.toDart;
387387
}
388388

389389
JSFunction? _onAuthUnsubscribe;

0 commit comments

Comments
 (0)