Skip to content

Commit

Permalink
Merge pull request #16 from lonelyevil/master
Browse files Browse the repository at this point in the history
Fix #15
  • Loading branch information
jiegec authored Jan 24, 2021
2 parents bcacc03 + 10f5942 commit c707820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Oath.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default function Oath() {
} else if (keyEncoding === 'HEX') {
keyArray = hexStringToByte(key);
} else if (keyEncoding === 'Base32') {
keyArray = base32.decode.asBytes(key);
keyArray = base32.decode.asBytes(key.toUpperCase());
} else {
throw "Unsupported key encoding";
}
Expand Down

0 comments on commit c707820

Please sign in to comment.