Updated dapp (#56)

This commit is contained in:
Celine Sarafa
2022-09-09 15:23:36 +03:00
committed by GitHub
parent 34efd70cd7
commit 5df9bd7a1f
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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);
}
});