Identity integration with a static web site

I haven’t tested it, but I believe you could do something like:

netlifyIdentity.on('login', user => {
  netlifyIdentity.close()
})