New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@seontechnologies/seon-id-verification

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seontechnologies/seon-id-verification

An advanced SDK featuring web components for natural person identification through document scanning, facial recognition, hand gesture, and face turning detection, designed for secure and efficient user verification.

  • 0.1.6
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-38%
Maintainers
0
Weekly downloads
 
Created
Source

seon-id-verification documentation

Features

Our SDK offers a comprehensive suite of features designed to cater to a wide range of document validation and recognition needs. Below is a breakdown of the key features available:

Document Validation and Content Verification

  • Document Type Recognition: Automatically identifies the type of document presented, whether it's an ID card, passport, driver's license, or any other official document.
  • Content Validation: Extracts and validates the textual information from documents, ensuring the data's integrity and accuracy. This includes checking the validity of names, dates, document numbers, and other critical information.
  • Forgery Detection: Utilizes advanced algorithms to detect and alert on any signs of tampering or forgery within the document, ensuring the authenticity of the presented documents.

Facial Recognition

  • Identity Verification: Compares the facial image on the document with the person presenting it to ensure they are the same individual, enhancing security and preventing identity fraud.
  • Liveness Detection: Detects real-time presence and distinguishes between a live person and a spoofing attempt, such as using photographs or videos, to ensure that the verification process is secure.
  • Emotion Analysis: While primarily focused on identity verification, our facial recognition technology can also analyze facial expressions to deduce emotions, offering potential applications in user experience studies and security.

Hand Gesture Recognition

  • Gesture Control: Enables interaction with devices or applications through simple hand gestures, making the user interface more intuitive and accessible.
  • Complex Gesture Recognition: Our SDK can recognize complex hand gestures, offering sophisticated controls for applications requiring nuanced interactions.
  • Real-time Processing: Processes and recognizes hand gestures in real-time, ensuring a seamless and responsive user experience.

Quick Installation Guide

Install the Package Open a terminal in the project directory and run:

npm i @seontechnologies/seon-id-verification

Get started

TypeScript

When you using typescript in youre application, to avoid errors from custom elements, extend your application's types by declaring custom elements as part of your global type definitions. This lets TypeScript recognize these elements as valid, preventing any complaints about unknown tags when you use them in your application. Essentially, it's about teaching TypeScript about your custom elements to ensure type safety and avoid errors during compilation or development.

React.js example

seon-id-verification.tsx

import { SeonIdVerificationService } from '@seontechnologies/seon-id-verification';
import '@seontechnologies/seon-id-verification/styles';
import { useEffect, useRef, useState } from 'react';

export default function SeonIdVerification() {
    const [isCompleted, setIsCompleted] = useState(false);
    const [eventString, setEventString] = useState<string>();

    const { current: seonIdVerificationService } = useRef(
      new SeonIdVerificationService()
    );

    useEffect(() => {
      seonIdVerificationService.initialize({
        baseUrl: 'YOURE_BASE_URL',
        language: 'en',
        SEONCustomerData: {
          licenseKey: 'YOURE_LICENSE_KEY',
          referenceId: 'YOUR_REFERENCE_ID',
          email: 'johndoe@mail.com',
          name: 'John Doe',
          phoneNumber: '+00000000000',
          type: 'id-verification',
          userId: 'john-doe',
          additionalProperties: {
            additionalProp1: 'value1',
            additionalProp2: 'value2',
            additionalProp3: 'value3'
          }
        }
      });
  
      seonIdVerificationService.on('completed', () => {
        setIsCompleted(true);
      });
  
      seonIdVerificationService.on('error', err => {
        setEventString(err);
      });
  
      seonIdVerificationService.on('start', () => {
        console.log('started');
      });
    }, [seonIdVerificationService]);

  return (
    <button onClick={() => seonIdVerificationService.start()}>
      Start verification
    </button>
  );
}

Angular.js example:

init-seon-idverif-wc.component.ts

import { Component } from '@angular/core';
import { SeonIdVerificationService } from 'seon-id-verification';
import 'seon-id-verification/styles';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@Component({
  selector: 'init-seon-idverif-wc',
  standalone: true,
  templateUrl: './init-seon-idverif-wc.component.html',
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppComponent {
  constructor() {
    this.initSeonIdverifWC();
  }

  initSeonIdverifWC() {
    const seonIdVerificationService = new SeonIdVerificationService();

    seonIdVerificationService.initialize({
      baseUrl: 'YOURE_BASE_URL',
      language: 'en',
      SEONCustomerData: {
        licenseKey: 'YOURE_LICENSE_KEY',
        referenceId: 'YOUR_REFERENCE_ID',
        email: 'johndoe@mail.com',
        name: 'John Doe',
        phoneNumber: '+00000000000',
        type: 'id-verification',
        userId: 'john-doe',
        additionalProperties: {
          additionalProp1: 'value1',
          additionalProp2: 'value2',
          additionalProp3: 'value3'
        }
      }
    });

    //You can listen to the events like 'completed', 'sessionExpired', 'interruptedByUser'
    seonIdVerificationService.on('completed', () => {
      console.log('Verification completed');
    });

    seonIdVerificationService.start();
  }
}

init-seon-idverif-wc.component.html

no need

Next.js example:

When using SSR in any framework or library you need to import the package on the client. You can't run it on the server.

seon-id-verification.tsx

'use client';
import { useEffect } from 'react';
import 'seon-id-verification/styles';

export default function IdverifWrapper() {
  useEffect(() => {
    import('seon-id-verification').then(module => {
      const seonIdVerificationService = new module.SeonIdVerificationService();

      seonIdVerificationService.initialize({
        baseUrl: 'YOURE_BASE_URL',
        language: 'en',
        SEONCustomerData: {
          licenseKey: 'YOURE_LICENSE_KEY',
          referenceId: 'YOUR_REFERENCE_ID',
          email: 'johndoe@mail.com',
          name: 'John Doe',
          phoneNumber: '+00000000000',
          type: 'id-verification',
          userId: 'john-doe',
          additionalProperties: {
            additionalProp1: 'value1',
            additionalProp2: 'value2',
            additionalProp3: 'value3'
          }
        }
      });

      seonIdVerificationService.start();
    });
  }, []);
  return <div></div>;
}

Vanilla JavaScript

main.js

import { SeonIdVerificationService } from 'seon-id-verification';
//importing the css file is can be different depending on the bundler you are using
import 'seon-id-verification/style.css';

const seonIdVerificationService = new SeonIdVerificationService();

seonIdVerificationService.initialize({
  baseUrl: 'YOURE_BASE_URL',
  language: 'en',
  SEONCustomerData: {
    licenseKey: 'YOURE_LICENSE_KEY',
    referenceId: 'YOUR_REFERENCE_ID',
    email: 'johndoe@mail.com',
    name: 'John Doe',
    phoneNumber: '+00000000000',
    type: 'id-verification',
    userId: 'john-doe',
    additionalProperties: {
      additionalProp1: 'value1',
      additionalProp2: 'value2',
      additionalProp3: 'value3'
    }
  }
});

seonIdVerificationService.start();

index.html

<!doctype html>
<html lang="en">
  <head>
    <title>VanillaJS</title>
    <script type="module" src="main.js"></script>
  </head>
  <body>
    <main></main>
  </body>
</html>

Initializer options

  • baseUrl | Provided base url by the SEON for youre license key | string |
  • language | Language of the SDK | string (lowercase ISO code)
  • SEONCustomerData | Config object | object |
    • licenseKey | License key for the SDK | string
    • referenceId | Reference id for the license | string
    • type | Type | string
    • email | Email address | string
    • phoneNumber | Phone number | string
    • name | Name of the license key holder | string
    • userId | User id | string
    • additionalProperties | Additional properties for the initialization | object
      • additionalProp1 | Could be anything | string
      • additionalProp1 | Could be anything | string
      • additionalProp1 | Could be anything | string

Event listeners

Example of on events. The referenc function will fired when the event is occured.

seonIdVerificationService.on('eventName', () => {
  console.log('Event fired');
});

Example of on error event. The referenc function will fired when the event is occured.

seonIdVerificationService.on('error', err => {
  console.log('Error:', err);
});
List of events
eventNamedescriptionreturn value
completedWhen the sdk flow is finished successfullynone
startWhen the flow is startednone
errorWhen some error occurred in the sdk"error_code_1", "error_code_2", "error_code_3", "error_code_4", "error_code_5", "error_code_6"

Complatibility

BrowserVersion
Chrome96
Safari15
Firefox79
Opera82
iOS Safari15
Android Browser81
Chrome for android96
Firefox for android79

Licenc feltételek

A részletes licenc feltételek megtekinthetők az alábbi linken: SEON licenc feltételek.

Keywords

FAQs

Package last updated on 05 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc