How to use the netlify-identity-widget.logout function in netlify-identity-widget

To help you get started, we’ve selected a few netlify-identity-widget 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 uptownhr / hackable / web / pages / index.vue View on Github external
logout () {
        netlifyIdentity.logout()
        this.user = null
      }
    }
github diegonvs / gatsby-boilerplate / src / services / auth.js View on Github external
return new Promise((resolve, reject) => {
        netlifyIdentity.logout();
        netlifyIdentity.on('logout', () => {
            resolve();
        });
    });
}
github PrefectHQ / prefect / docs / .vuepress / components / Logout.vue View on Github external
mounted () {
    const netlifyIdentity = require("netlify-identity-widget")
    netlifyIdentity.logout()
    this.$router.push('/')
  }
}
github ejarzo / Shape-Your-Music / src / context / CurrentUserContext / CurrentUserContextProvider.js View on Github external
logout = callback => {
    netlifyIdentity.logout();
    netlifyIdentity.on('logout', () => {
      this.setState({ user: null });
    });
  };

netlify-identity-widget

Netlify Identity widget for easy integration

MIT
Latest version published 3 years ago

Package Health Score

63 / 100
Full package analysis