Skip to main content
The Deno 2 Release Candidate is here
Learn more

TOTP

Generate totp with deno

see ./test.ts for an example ! click here

Test

import { TOTP } from "./totp.ts";

const key = await TOTP.importKey("GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ");

console.log(await TOTP.getTOTP(key, 60, 10));

for await (const code of TOTP.generateTOTP(key, 30, 6)) {
    console.log(code);
}

problem ?

open an issue here