kaliumxyz / getid-launcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetID Web SDK Launcher

A light script for to start to use GetID

Introduction

This script is intended to start GetId Web SDK v6 on web a page. For a launch sdk v6 read sdk v5 README

For the previous version read LAUNCHER V1 documentation

How to use

  1. I should install script in your project:

    npm i getid-launcher
  2. Import function into your client code:

    import { init } from 'getid-launcher';

    or

    const { init } = require('getid-launcher');
  3. Compile SDK configuration object: You can get more information on https://github.com/vvorld/getid-web-sdk/tree/v6

  4. Create element in DOM where SDK should be included:

        <div id='getid-component'>
  5. Call initialization WebSDK

        init(config);

Examples

You can see a simple example in repository https://github.com/vvorld/getid-launcher/tree/main/example

This example shows how use launcher in client side script (https://github.com/vvorld/getid-launcher/blob/main/example/client.js)

About


Languages

Language:JavaScript 64.0%Language:TypeScript 24.3%Language:Handlebars 11.7%