1.2.0 • Published 4 months ago

asliri-comprehensive-liveness-vue v1.2.0

Weekly downloads
-
License
Asliri License
Repository
-
Last release
4 months ago

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
1.2.0

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago