Skip to content

Commit b440deb

Browse files
authored
Update firebase-messaging-setup.ts
1 parent c3d5ac1 commit b440deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase-messaging-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function saveMessagingDeviceToken() {
3636
// Get token (using the compat messaging instance)
3737
// VAPID key is required for web push (generate in Firebase Console -> Project settings -> Cloud Messaging)
3838
// Note: getToken is part of the v9 web API, which compat wraps
39-
const currentToken = await messaging.getToken({ vapidKey: 'YOUR_VAPID_KEY_HERE' });
39+
const currentToken = await messaging.getToken({ vapidKey: 'BM1H9qfv1e_XcIB31ZeLCn8IpGOdMIwMShRej6wld8QAMkV4YqJ-eMQa1rSnwhkmVmAFw3tvUdlP2JzZmgTq4Fk' });
4040

4141
if (currentToken) {
4242
console.log('FCM registration token:', currentToken);

0 commit comments

Comments
 (0)