Update totp.js

This commit is contained in:
Namhyeon Go 2024-11-28 14:13:14 +09:00 committed by GitHub
parent 81592beb64
commit f00e6eed1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,3 +49,10 @@ exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.5";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;
/*
// Example:
var TOTP = require("lib/totp");
console.log(TOTP.getPubKey()); // get public key. e.g. 6Y4R 3AQN 4TTV CEQT
console.log(TOTP.getOtp('6Y4R 3AQN 4TTV CEQT')); // get OTP code. e.g. 317884
*/