Integration and Usage

Example apps

Install and import package

via NPM packagearrow-up-right

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

via js bundlearrow-up-right

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

via es module js bundlearrow-up-right

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