Creates an HOTP key URI with the algorithm parameter set to SHA1.

Definition

function createHOTPKeyURI(
	issuer: string,
	accountName: string,
	key: Uint8Array,
	counter: bigint,
	digits: number
): string;

Parameters

  • issuer
  • key
  • key
  • counter
  • digits

Example

import { createHOTPKeyURI } from "@oslojs/otp";

const uri = createHOTPKeyURI("My App", "[email protected]", key, counter, 6);