diff --git a/package.json b/package.json index ca10879..488c84f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@testing-library/user-event": "^13.5.0", "ethers": "^5.7.2", "js-base64": "^3.7.2", - "lit-js-sdk": "^1.2.31", + "lit-js-sdk": "^1.2.32", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", diff --git a/src/App.js b/src/App.js index bd2a673..57d9e62 100644 --- a/src/App.js +++ b/src/App.js @@ -55,7 +55,7 @@ function App() { let jwtParts = credentialResponse.credential.split("."); let jwtPayload = JSON.parse(Base64.decode(jwtParts[1])); - let idForAuthMethod = ethers.utils.hexlify( + let idForAuthMethod = ethers.utils.keccak256( ethers.utils.toUtf8Bytes(`${jwtPayload.sub}:${jwtPayload.aud}`) ); @@ -128,7 +128,9 @@ function App() { }; // get the user a session with it - const litNodeClient = new LitJsSdk.LitNodeClient({ litNetwork: "serrano" }); + const litNodeClient = new LitJsSdk.LitNodeClient({ + litNetwork: "serrano", + }); await litNodeClient.connect(); const sessionSigs = await litNodeClient.getSessionSigs({ diff --git a/src/abis/deployed-contracts.json b/src/abis/deployed-contracts.json index b06cc53..33ae120 100644 --- a/src/abis/deployed-contracts.json +++ b/src/abis/deployed-contracts.json @@ -15,4 +15,4 @@ "litNodeDomainName": "127.0.0.1", "litNodePort": 7470, "rocketPort": 7470 -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 7fd3acd..8ad1a22 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6884,10 +6884,10 @@ lit-connect-modal@^0.1.10: dependencies: micromodal "^0.4.10" -lit-js-sdk@^1.2.31: - version "1.2.31" - resolved "https://registry.yarnpkg.com/lit-js-sdk/-/lit-js-sdk-1.2.31.tgz#6b78b8e705fd1fc9124cab2b122b7daba7550db7" - integrity sha512-1KAEB+ZYJBSOIc8/j8al/C11DVH++MOuitJM/xsij+mJeupaNW0W7ZSTECxzEPnw3huPJPPrB/OSQfW+rON+BA== +lit-js-sdk@^1.2.32: + version "1.2.32" + resolved "https://registry.yarnpkg.com/lit-js-sdk/-/lit-js-sdk-1.2.32.tgz#334f26d5051acb6953b2e803860516859d19b78e" + integrity sha512-UHM6J6sa+06EMMpjZkDtZ3hAQM4756m/ckRp3hSrmTMr5Qc3meISvlnPaH/BAPdwDdrgUMqmY+c1um4T+g7JCw== dependencies: "@ethersproject/bytes" "^5.5.0" "@ethersproject/contracts" "^5.2.0"