Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (32 loc) · 701 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 701 Bytes

Mynaconnect Client Library

The easiest way to interact with mynumber card.

How to use

Load Library

via <script>

<script src="https://mynaconnect-lib.netlify.app/mynaconnect.js">

This source addres will change in the near future.

via ESModule import

import { Popup } from "mynaconnect"

Example

const popup = new mynaconnect.Popup({
    appName: "Test Application"
});
popup.open("signWithAuth", { sigHash: "00" })
popup.getResult().then(result=>{
    console.log(result.success, result.cert, result.sig)
})

Build

npm install
npm run build

Try / Development

npm run dev  # will automatically open web browser