Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/@magic-sdk/provider/src/util/web-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function clearKeys() {
}

export async function createJwt() {
// will return undefined is webcrypto is not supported
// will return undefined if webcrypto is not supported
const publicJwk = await getPublicKey();

if (!publicJwk) {
Expand Down Expand Up @@ -82,7 +82,7 @@ async function generateWCKP() {
const { subtle } = window.crypto;
const kp = await subtle.generateKey(
EC_GEN_PARAMS,
false, // need to export the public key, while keep private key non-extractable
false, // need to export the public key, while keeping private key non-extractable
['sign'],
);

Expand Down