Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkharit committed Dec 20, 2024
1 parent 4136fb3 commit b4bb09c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-key-stamper/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function convertTurnkeyApiKeyToJwk(input: {
let jwk;
try {
jwk = pointDecode(uint8ArrayFromHexString(compressedPublicKeyHex));
} catch (e: Error) {
} catch (e) {
throw new Error(`invalid API key: Ensure that you are using a valid public and private key in compressed or uncompressed format and they are not switched`);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-browser/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createEmbeddedAPIKey = async (
let jwk;
try {
jwk = pointDecode(targetKeyBytes);
} catch (e: Error) {
} catch (e) {
// provide more context about the error that is being thrown
throw new Error(`target public key is not a valid compressed public key: ${targetPublicKey}`);
}
Expand Down

0 comments on commit b4bb09c

Please sign in to comment.