Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async FBLogout() {
const token = this.getStoredFBToken();
await client.logout({ token }).then(() => {
conf.set('firebase.token', '');
console.log('Logged out of Firebase. 👋 👋 👋\n');
return true;
}).catch((err) => {
throw new Error('Unable to logout.\nError:', err);
});
},