Skip to content

Commit 8736cda

Browse files
committed
Fixed the issuer field.
1 parent 676e914 commit 8736cda

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Logs
2+
3+
## v0.1.2
4+
5+
- Fixed the `issuer` field.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@litert/otp",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "The OTP support library of LiteRT.",
55
"main": "lib/index.js",
66
"scripts": {

src/examples/totp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import $OTP from "../lib";
2121
const totp = $OTP.createTOTPKeyMaker({
2222
digits: 8,
2323
label: "Example4TOTP" + Math.random(),
24-
secret: "163uV4MOLEr6FGKF2CEFh"
24+
secret: "163uV4MOLEr6FGKF2CEFh",
25+
issuer: "LiteRT"
2526
});
2627

2728
console.log(totp.getCode());

src/lib/AbstractKeyMaker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default abstract class AbstractKeyMaker<T extends C.TType> implements C.I
103103

104104
if (this._opts.issuer) {
105105

106-
query._opts.issuer = this._opts.issuer;
106+
query.issuer = this._opts.issuer;
107107
}
108108

109109
if (this._opts.counter) {

0 commit comments

Comments
 (0)