How to use the firebase-tools.logout function in firebase-tools

To help you get started, we’ve selected a few firebase-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github forgepwa / the_forge / lib / firebase.js View on Github external
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);
    });
  },