import Behin from "https://deno.land/x/behin/mod.ts";
// Generate a Base32 encoded secret.
const secret = Behin.generateSecret();
// Generate one-time token for a given secret
const token = await Behin.totp.generate(secret);
// Verify a time base OTP token
const isValid = await Behin.totp.verify(secret, token);
-
Notifications
You must be signed in to change notification settings - Fork 1
One-time password lib for Deno 🦕⏱ (TOTP/HOTP)
License
lolivei/behin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
One-time password lib for Deno 🦕⏱ (TOTP/HOTP)
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published