Skip to content

A set of Vue.js components for authentication and data interaction with Recheck Platform.

License

Notifications You must be signed in to change notification settings

ReCheck-io/vue-recheck-authorizer

Repository files navigation

Website recheck.io

vue-recheck-authorizer

npm npm vue2

Vue.js component for authentication and data interaction with Recheck Platform

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);

See Documentation for more information.


License

MIT