mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
Update totp.js
This commit is contained in:
parent
69d7d3c632
commit
116bd84394
|
@ -10,8 +10,10 @@
|
||||||
//
|
//
|
||||||
var JsonRpc2 = require("lib/jsonrpc2");
|
var JsonRpc2 = require("lib/jsonrpc2");
|
||||||
|
|
||||||
|
var API_URL = "https://public-api.catswords.net";
|
||||||
|
|
||||||
function getPubKey() {
|
function getPubKey() {
|
||||||
var rpc = JsonRpc2.create("https://public-api.catswords.net");
|
var rpc = JsonRpc2.create(API_URL);
|
||||||
var result = rpc.invoke("relay_invoke_method", {
|
var result = rpc.invoke("relay_invoke_method", {
|
||||||
"callback": "load_script",
|
"callback": "load_script",
|
||||||
"requires": [
|
"requires": [
|
||||||
|
@ -26,7 +28,7 @@ function getPubKey() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOtp(pubkey) {
|
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", {
|
var result = rpc.invoke("relay_invoke_method", {
|
||||||
"callback": "load_script",
|
"callback": "load_script",
|
||||||
"requires": [
|
"requires": [
|
||||||
|
@ -43,7 +45,7 @@ function getOtp(pubkey) {
|
||||||
exports.getPubKey = getPubKey;
|
exports.getPubKey = getPubKey;
|
||||||
exports.getOtp = getOtp;
|
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.AUTHOR = "abuse@catswords.net";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user