UNPKG
@me7/totp
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Time-Based One-Time Password Algorithm (RFC 6238)
github.com/me7/totp
me7/totp
@me7/totp
/
test
/
app.js
9 lines
(5 loc)
•
131 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
A =
require
(
"../dist/index"
);
let
b = A.
TOTP
.
generate
();
console
.
log
(b);
let
c =
new
A.
TOTP
();
console
.
log
(c.
validate
());