This is a working example showing how to use Netlify's GoTrue JS library with VueJS. It accompanies the blogpost on the same topic, you can find that here.
yarn install
Note that using Identity with GoTrueJS requires you to deploy your site Netlify and enable Identity in Netlify's app dashboard. Also, be sure to change the identity URL in src > state > modules > auth > state.js
to a custom link or the default link netlify deploys your site to.
yarn run serve
yarn run build
yarn run lint