asliri-passive-liveness-vue
v2.1.0
Published
Asliri sdk passive liveness vuejs
Downloads
8
Readme
ASLIRI - PASSIVE LIVENESS - WEB SDK (VUEJS)
Description
You can verification face with passive liveness by ASLIRI. The SDK support for VueJS
Check out the SDK for a simplified integration.
1. Copy wasm folder to public directory
- wasm folder provided by ASLIRI
- copy to projectname/public/copyhere...
2. Get your token with ASLIRI Team
3. Install Library via NPM
npm i asliri-passive-liveness-vue
sample in App.vue:
<script setup lang="ts">
import { PassiveLiveness } from "asliri-passive-liveness-vue";
const handlePhotoTaken = (resultData: { result: boolean, message: string, image: string }) => {
console.log("image >>>", resultData.image);
console.log("result >>>", resultData.result);
console.log("message >>>", resultData.message);
};
const handleError = (error: Error) => {
alert(error);
};
</script>
<template>
<PassiveLiveness token="XXXXX-XXXX-XXXX" @on-complete="handlePhotoTaken" @on-error="handleError" />
</template>
Thank you.
Version History
2.1.0
- Update new core
2.0.2
- Fix type data response
2.0.1
- Add button reload
- Add loading overlay
- Add response result message
- remove param copyright and reset button
1.0.1
- Add readme file
1.0.0
- First publish