@biz-storefront/auth

A embeddable single page application to handle authentication for your storefront.

Usage no npm install needed!

<script type="module">
  import bizStorefrontAuth from 'https://cdn.skypack.dev/@biz-storefront/auth';
</script>

README

Biz Auth

A embeddable single page application to handle authentication for your storefront.

Requirements

In order for the application to work, it requires a Auth and Customer service interface implementation to be injected.

import Store from 'bizstore'
import Authentication from 'biz-auth'
import { AuthService, CustomerService } from '@biz-storefront/services'

const store = new Vuex.Store(Store)
const app = new Vue({
    provide(){
        return {
            CustomerService,
            AuthService
        }
    },
    store,
    ...Authentication
})

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Run your unit tests

npm run test:unit

Customize configuration

See Configuration Reference.