File tree 2 files changed +12
-10
lines changed
packages-exp/functions-exp/src 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ FirebaseAuthInternal ,
3
+ FirebaseAuthInternalName
4
+ } from '@firebase/auth-interop-types' ;
1
5
/**
2
6
* @license
3
7
* Copyright 2017 Google LLC
@@ -18,10 +22,7 @@ import {
18
22
FirebaseMessaging ,
19
23
FirebaseMessagingName
20
24
} from '@firebase/messaging-types' ;
21
- import {
22
- FirebaseAuthInternal ,
23
- FirebaseAuthInternalName
24
- } from '@firebase/auth-interop-types' ;
25
+
25
26
import { Provider } from '@firebase/component' ;
26
27
27
28
/**
@@ -92,7 +93,7 @@ export class ContextProvider {
92
93
}
93
94
94
95
try {
95
- return this . messaging . getToken ( ) ;
96
+ return await this . messaging . getToken ( ) ;
96
97
} catch ( e ) {
97
98
// We don't warn on this, because it usually means messaging isn't set up.
98
99
// console.warn('Failed to retrieve instance id token.', e);
Original file line number Diff line number Diff line change
1
+ import {
2
+ FirebaseAuthInternal ,
3
+ FirebaseAuthInternalName
4
+ } from '@firebase/auth-interop-types' ;
1
5
/**
2
6
* @license
3
7
* Copyright 2017 Google LLC
@@ -18,10 +22,7 @@ import {
18
22
FirebaseMessaging ,
19
23
FirebaseMessagingName
20
24
} from '@firebase/messaging-types' ;
21
- import {
22
- FirebaseAuthInternal ,
23
- FirebaseAuthInternalName
24
- } from '@firebase/auth-interop-types' ;
25
+
25
26
import { Provider } from '@firebase/component' ;
26
27
27
28
/**
@@ -93,7 +94,7 @@ export class ContextProvider {
93
94
}
94
95
95
96
try {
96
- return this . messaging . getToken ( ) ;
97
+ return await this . messaging . getToken ( ) ;
97
98
} catch ( e ) {
98
99
// We don't warn on this, because it usually means messaging isn't set up.
99
100
// console.warn('Failed to retrieve instance id token.', e);
You can’t perform that action at this time.
0 commit comments