asliri-comprehensive-liveness-vue
v1.2.0
Published
Asliri sdk comprehensive liveness vuejs
Downloads
4
Readme
ASLIRI - COMPREHENSIVE LIVENESS - WEB SDK (VUEJS)
Description
You can verification face and eye with comprehensive 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-comprehensive-liveness-vue
sample in App.vue:
<script setup lang="ts">
import { ComprehensiveLiveness } from "asliri-comprehensive-liveness-vue";
const handleComplete = (resultData: { score: number, message: string, image: string }) => {
console.log("image >>>", resultData.image);
console.log("score >>>", resultData.score);
console.log("message >>>", resultData.message);
};
const handleError = (error: Error) => {
alert(error);
};
</script>
<template>
<ComprehensiveLiveness token="xxxx-xxxx-xxxx" @on-complete="handleComplete" @on-error="handleError" />
</template>
Thank you.
Version History
1.0.0
- First publish