Update totp.js
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run

This commit is contained in:
Namhyeon Go 2024-11-26 02:46:06 +09:00 committed by GitHub
parent 69d7d3c632
commit 116bd84394
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;