How to use the netlify-identity-widget.close 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 diegonvs / gatsby-boilerplate / src / services / auth.js View on Github external
netlifyIdentity.on('login', user => {
                netlifyIdentity.close();
                resolve();
            });
        }
github PrefectHQ / prefect / docs / .vuepress / theme / Layout.vue View on Github external
logIn (user) {
      const netlifyIdentity = require("netlify-identity-widget");
      if (!user) {
        this.logOut();
      } else {
        this.$data.loggedIn = true
      }
      netlifyIdentity.close()
    },
  },

netlify-identity-widget

Netlify Identity widget for easy integration

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis