From 400e904aa92b9bb73015c3b290c90e95c4c1e29a Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 26 Nov 2024 01:49:36 +0900 Subject: [PATCH] Update totp.js --- lib/totp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/totp.js b/lib/totp.js index 87cb2a2..07b44a2 100644 --- a/lib/totp.js +++ b/lib/totp.js @@ -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;