Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(messagingSenderId) {
super();
this.set('data', {});
this.set('ttl', 3600);
this.set('messageId', generateFirestoreId());
if (messagingSenderId) {
this.set('to', `${messagingSenderId}@fcm.googleapis.com`);
}
}