vue-recheck-authorizer
v1.1.20
Published
A set of Vue.js components for authentication and data interaction with ReCheck Platform.
Downloads
124
Readme
vue-recheck-authorizer
Vue.js component for authentication and data interaction with Recheck Platform
Documentation
Installation
npm install --save vue-recheck-authorizer vue-qrcode-reader
# OR
yarn add vue-recheck-authorizer vue-qrcode-reader
Config
Each (production/development) scripts loads env file for itself
.env.production.local
for production settings/scripts
.env.development.local
for development settings/scripts
Example .env.production.local
file:
# production (logs disabled) or debug (logs enabled)
VUE_APP_LOGGER_MODE=production
# api endpoint,network needed to initialize function
VUE_APP_API_ENV=https://beta.recheck.io,ae
Default import
Install all the components:
import Vue from 'vue';
import VueQrcodeReader from 'vue-qrcode-reader';
import VueRecheckAuthorizer from 'vue-recheck-authorizer';
import '../node_modules/vue-recheck-authorizer/dist/main.css';
Vue.use(VueQrcodeReader);
Vue.use(VueRecheckAuthorizer);
Use specific components:
import Vue from 'vue';
import VueQrcodeReader from 'vue-qrcode-reader';
import { Scanner } from 'vue-recheck-authorizer';
import '../node_modules/vue-recheck-authorizer/dist/main.css';
Vue.use(VueQrcodeReader);
Vue.component('recheck-scanner', Scanner);