Send actual domain data (#62)

This commit is contained in:
Celine Sarafa 2022-09-15 19:24:26 +03:00 committed by GitHub
parent ec908fc6c4
commit 207c6871ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ const Home: NextPage = () => {
if (!client) return; if (!client) return;
client client
.request({ .request({
aud: "http://localhost:3000/", aud: window.location.href,
domain: "localhost:3000", domain: window.location.hostname.split(".").slice(-2).join("."),
chainId: "eip155:1", chainId: "eip155:1",
type: "eip4361", type: "eip4361",
nonce: generateNonce(), nonce: generateNonce(),