File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/firebase_app_check/firebase_app_check_web/lib/src/interop Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,14 @@ class AppCheck extends JsObjectWrapper<app_check_interop.AppCheckJsImpl> {
58
58
);
59
59
60
60
Future <app_check_interop.AppCheckTokenResult > getToken (bool ? forceRefresh) =>
61
- app_check_interop.getToken (jsObject, forceRefresh? .toJS).toDart
62
- as Future <app_check_interop.AppCheckTokenResult >;
61
+ app_check_interop.getToken (jsObject, forceRefresh? .toJS).toDart.then (
62
+ (value) => value! as app_check_interop.AppCheckTokenResult ,
63
+ );
63
64
64
65
Future <app_check_interop.AppCheckTokenResult > getLimitedUseToken () =>
65
- app_check_interop.getLimitedUseToken (jsObject).toDart
66
- as Future <app_check_interop.AppCheckTokenResult >;
66
+ app_check_interop.getLimitedUseToken (jsObject).toDart.then (
67
+ (value) => value! as app_check_interop.AppCheckTokenResult ,
68
+ );
67
69
68
70
JSFunction ? _idTokenChangedUnsubscribe;
69
71
You can’t perform that action at this time.
0 commit comments