Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit ca69b2a

Browse files
fix double encoding
1 parent 26f8c9d commit ca69b2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.changesets/1719416300-a6fzo.patch.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `issuer` parameter getting encoded twice in key URI

src/otp/uri.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function createKeyURIBase(
4949
secret: base32.encode(new Uint8Array(secret), {
5050
includePadding: false
5151
}),
52-
issuer: encodedIssuer
52+
issuer
5353
});
5454
if (options?.digits !== undefined) {
5555
params.set("digits", options.digits.toString());

0 commit comments

Comments
 (0)