From ec908fc6c4d3604bdef723af04e0d4df9a017c95 Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Thu, 15 Sep 2022 17:59:54 +0200 Subject: [PATCH] feat(auth): use `generateNonce` util fn (#61) --- dapps/react-dapp-auth/pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dapps/react-dapp-auth/pages/index.tsx b/dapps/react-dapp-auth/pages/index.tsx index d6906dd..4c14fdd 100644 --- a/dapps/react-dapp-auth/pages/index.tsx +++ b/dapps/react-dapp-auth/pages/index.tsx @@ -1,5 +1,5 @@ import { Box } from "@chakra-ui/react"; -import AuthClient from "@walletconnect/auth-client"; +import AuthClient, { generateNonce } from "@walletconnect/auth-client"; import { version } from "@walletconnect/auth-client/package.json"; import type { NextPage } from "next"; import { useCallback, useEffect, useState } from "react"; @@ -22,7 +22,7 @@ const Home: NextPage = () => { domain: "localhost:3000", chainId: "eip155:1", type: "eip4361", - nonce: "nonce", + nonce: generateNonce(), statement: "Sign in with wallet.", }) .then(({ uri }) => setUri(uri));