Skip to content

Commit

Permalink
fix double encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jun 26, 2024
1 parent 26f8c9d commit ca69b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changesets/1719416300-a6fzo.patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `issuer` parameter getting encoded twice in key URI
2 changes: 1 addition & 1 deletion src/otp/uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function createKeyURIBase(
secret: base32.encode(new Uint8Array(secret), {
includePadding: false
}),
issuer: encodedIssuer
issuer
});
if (options?.digits !== undefined) {
params.set("digits", options.digits.toString());
Expand Down

0 comments on commit ca69b2a

Please sign in to comment.