Integration and Usage

Example apps

Install and import package

via NPM package

npm i ontlogin
import {createAuthRequest} from "ontlogin";

via js bundle

<script src="ontlogin.min.js"></script>
<script>
    ontlogin.createAuthRequest();
</script>

via es module js bundle

import {createAuthRequest} from "ontlogin.es.js";

Generate authRequest and challenge

Get QR code from ontlogin QR server.

Show QR code UI and query scan result from ontlogin QR server

Submit challenge response to your server

Last updated