We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50860d7 + ca2ea88 commit 53994e8Copy full SHA for 53994e8
packages/functions/src/context.ts
@@ -1,3 +1,7 @@
1
+import {
2
+ FirebaseAuthInternal,
3
+ FirebaseAuthInternalName
4
+} from '@firebase/auth-interop-types';
5
/**
6
* @license
7
* Copyright 2017 Google LLC
@@ -18,10 +22,7 @@ import {
18
22
FirebaseMessaging,
19
23
FirebaseMessagingName
20
24
} from '@firebase/messaging-types';
21
-import {
- FirebaseAuthInternal,
- FirebaseAuthInternalName
-} from '@firebase/auth-interop-types';
25
+
26
import { Provider } from '@firebase/component';
27
28
@@ -93,7 +94,7 @@ export class ContextProvider {
93
94
}
95
96
try {
- return this.messaging.getToken();
97
+ return await this.messaging.getToken();
98
} catch (e) {
99
// We don't warn on this, because it usually means messaging isn't set up.
100
// console.warn('Failed to retrieve instance id token.', e);
0 commit comments