Update totp.js

This commit is contained in:
Namhyeon Go 2024-11-26 01:49:36 +09:00
parent 27f4dc2084
commit 400e904aa9

View File

@ -13,7 +13,7 @@ var JsonRpc2 = require("lib/jsonrpc2");
function getPubKey() {
var rpc = JsonRpc2.create("https://public-api.catswords.net");
var result = rpc.invoke("relay_invoke_method", {
"method": "load_script",
"callback": "load_script",
"requires": [
"https://raw.githubusercontent.com/dimamedia/PHP-Simple-TOTP-and-PubKey/refs/heads/master/class.tfa.php"
],
@ -28,7 +28,7 @@ function getPubKey() {
function getOtp() {
var rpc = JsonRpc2.create("https://public-api.catswords.net");
var result = rpc.invoke("relay_invoke_method", {
"method": "load_script",
"callback": "load_script",
"requires": [
"https://raw.githubusercontent.com/dimamedia/PHP-Simple-TOTP-and-PubKey/refs/heads/master/class.tfa.php"
],
@ -43,7 +43,7 @@ function getOtp() {
exports.getPubKey = getPubKey;
exports.getOtp = getOtp;
exports.VERSIONINFO = "TOTP library (totp.js) version 0.1";
exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.1";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;