Vue.js component for authentication and data interaction with Recheck Platform
npm install --save vue-recheck-authorizer vue-qrcode-reader
# OR
yarn add vue-recheck-authorizer vue-qrcode-reader
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
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);