How to use the netlify-identity-widget.open 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 Ledgy / TrainTrack / src / ui / identity / Widget.jsx View on Github external
        <button type="button"> netlifyIdentity.open("signup")}&gt;
          Signup</button>
github danielmahon / gatsby-starter-procyon / src / components / Footer / index.js View on Github external
handleLogin = type => () => {
    netlifyIdentity.open(type);
  };
  render() {
github diegonvs / gatsby-boilerplate / src / services / auth.js View on Github external
return new Promise((resolve, reject) => {
        if (isLoggedIn()) {
            resolve();
        } else {
            netlifyIdentity.open();
            netlifyIdentity.on('login', user => {
                netlifyIdentity.close();
                resolve();
            });
        }
        netlifyIdentity.on('error', err => {
            reject(err);
        });
    });
}
github Ledgy / TrainTrack / src / ui / identity / Widget.jsx View on Github external
          onClick={() => netlifyIdentity.open("login")}
        >
github ejarzo / Shape-Your-Music / src / context / CurrentUserContext / CurrentUserContextProvider.js View on Github external
authenticate = ({ showSignup = false, onSuccess }) => {
    netlifyIdentity.open(showSignup && 'signup');
    netlifyIdentity.on('login', user => {
      this.setState({ user });
      onSuccess && onSuccess(user);
    });
  };

netlify-identity-widget

Netlify Identity widget for easy integration

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis