Updated dapp (#56)
This commit is contained in:
parent
34efd70cd7
commit
5df9bd7a1f
14
dapps/react-dapp-auth/package-lock.json
generated
14
dapps/react-dapp-auth/package-lock.json
generated
@ -11,7 +11,7 @@
|
||||
"@chakra-ui/react": "^2.2.6",
|
||||
"@emotion/react": "^11.10.0",
|
||||
"@emotion/styled": "^11.10.0",
|
||||
"@walletconnect/auth-client": "^0.1.8",
|
||||
"@walletconnect/auth-client": "^0.1.10",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"events": "^3.3.0",
|
||||
"framer-motion": "^7.0.0",
|
||||
@ -3020,9 +3020,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@walletconnect/auth-client": {
|
||||
"version": "0.1.8",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.8.tgz",
|
||||
"integrity": "sha512-OJtUu6oTdCiSbqKNFqokI4xc4IBf3i8vO0BvRNmQXTSmEozlMQ1vTzmXo/C7ctJHQSy/IfQjISuGOIxSFfvC9w==",
|
||||
"version": "0.1.10",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.10.tgz",
|
||||
"integrity": "sha512-0skOFRq1prEiCo+eK1O+SJ1TqSg7Qj7XVxJm576UtCQLN+nGnhxHeRr1V9sljNqUjfL9rHPOTUVzpiCbQTli2g==",
|
||||
"dependencies": {
|
||||
"@walletconnect/core": "2.0.0-rc.2",
|
||||
"@walletconnect/events": "1.0.0",
|
||||
@ -8972,9 +8972,9 @@
|
||||
}
|
||||
},
|
||||
"@walletconnect/auth-client": {
|
||||
"version": "0.1.8",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.8.tgz",
|
||||
"integrity": "sha512-OJtUu6oTdCiSbqKNFqokI4xc4IBf3i8vO0BvRNmQXTSmEozlMQ1vTzmXo/C7ctJHQSy/IfQjISuGOIxSFfvC9w==",
|
||||
"version": "0.1.10",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.10.tgz",
|
||||
"integrity": "sha512-0skOFRq1prEiCo+eK1O+SJ1TqSg7Qj7XVxJm576UtCQLN+nGnhxHeRr1V9sljNqUjfL9rHPOTUVzpiCbQTli2g==",
|
||||
"requires": {
|
||||
"@walletconnect/core": "2.0.0-rc.2",
|
||||
"@walletconnect/events": "1.0.0",
|
||||
|
@ -12,7 +12,7 @@
|
||||
"@chakra-ui/react": "^2.2.6",
|
||||
"@emotion/react": "^11.10.0",
|
||||
"@emotion/styled": "^11.10.0",
|
||||
"@walletconnect/auth-client": "^0.1.8",
|
||||
"@walletconnect/auth-client": "^0.1.10",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"events": "^3.3.0",
|
||||
"framer-motion": "^7.0.0",
|
||||
|
@ -31,7 +31,7 @@ const Home: NextPage = () => {
|
||||
.request({
|
||||
aud: "http://localhost:3000/",
|
||||
domain: "localhost:3000",
|
||||
chainId: "1",
|
||||
chainId: "eip155:1",
|
||||
type: "eip4361",
|
||||
nonce: "nonce",
|
||||
statement: "Sign in with wallet.",
|
||||
@ -60,7 +60,7 @@ const Home: NextPage = () => {
|
||||
useEffect(() => {
|
||||
if (!client) return;
|
||||
client.on("auth_response", (res) => {
|
||||
if (res.params.code !== -1) {
|
||||
if (!!res.params.result.s) {
|
||||
setAccepted(true);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user