From 116bd84394153a0778f347d66c77b2dd190451c4 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 26 Nov 2024 02:46:06 +0900 Subject: [PATCH] Update totp.js --- lib/totp.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/totp.js b/lib/totp.js index 4930089..97dc57d 100644 --- a/lib/totp.js +++ b/lib/totp.js @@ -10,8 +10,10 @@ // var JsonRpc2 = require("lib/jsonrpc2"); +var API_URL = "https://public-api.catswords.net"; + function getPubKey() { - var rpc = JsonRpc2.create("https://public-api.catswords.net"); + var rpc = JsonRpc2.create(API_URL); var result = rpc.invoke("relay_invoke_method", { "callback": "load_script", "requires": [ @@ -26,7 +28,7 @@ function getPubKey() { } function getOtp(pubkey) { - var rpc = JsonRpc2.create("https://public-api.catswords.net"); + var rpc = JsonRpc2.create(API_URL); var result = rpc.invoke("relay_invoke_method", { "callback": "load_script", "requires": [ @@ -43,7 +45,7 @@ function getOtp(pubkey) { exports.getPubKey = getPubKey; exports.getOtp = getOtp; -exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.2"; +exports.VERSIONINFO = "TOTP library (totp.js) version 0.1.3"; exports.AUTHOR = "abuse@catswords.net"; exports.global = global; exports.require = global.require;