chore(deps): updates auth examples to auth-client@0.4.0
This commit is contained in:
parent
77adb22535
commit
270a6204ae
118
dapps/react-dapp-auth/package-lock.json
generated
118
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.3.2",
|
||||
"@walletconnect/auth-client": "0.4.0",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"ethers": "^5.7.0",
|
||||
"events": "^3.3.0",
|
||||
@ -3029,11 +3029,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@walletconnect/auth-client": {
|
||||
"version": "0.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.3.2.tgz",
|
||||
"integrity": "sha512-iImgPUCfVTeYh2bIVvKG0gMOMGkYsFM/Jp5gV1WORRlm70xDbqcAId0cKx+L4Oc+r1vQ3iRUEatHNMWeFizFWQ==",
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.4.0.tgz",
|
||||
"integrity": "sha512-VyJZQvz8qsojorrvCi/68qVmKup8DznmPOuSexpmCAuodzQq+OUSeuTlEWFDckWdDUQMNTSt8//7HAayzGx//A==",
|
||||
"dependencies": {
|
||||
"@ethersproject/wallet": "^5.7.0",
|
||||
"@ethersproject/bytes": "^5.7.0",
|
||||
"@ethersproject/contracts": "^5.7.0",
|
||||
"@ethersproject/hash": "^5.7.0",
|
||||
"@ethersproject/providers": "^5.7.1",
|
||||
"@ethersproject/transactions": "^5.7.0",
|
||||
"@stablelib/random": "1.0.2",
|
||||
"@walletconnect/core": "2.0.0-rc.2",
|
||||
"@walletconnect/events": "1.0.0",
|
||||
@ -3051,6 +3055,63 @@
|
||||
"node": "16"
|
||||
}
|
||||
},
|
||||
"node_modules/@walletconnect/auth-client/node_modules/@ethersproject/providers": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.1.tgz",
|
||||
"integrity": "sha512-vZveG/DLyo+wk4Ga1yx6jSEHrLPgmTt+dFv0dv8URpVCRf0jVhalps1jq/emN/oXnMRsC7cQgAF32DcXLL7BPQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2"
|
||||
},
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://www.buymeacoffee.com/ricmoo"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"@ethersproject/abstract-provider": "^5.7.0",
|
||||
"@ethersproject/abstract-signer": "^5.7.0",
|
||||
"@ethersproject/address": "^5.7.0",
|
||||
"@ethersproject/base64": "^5.7.0",
|
||||
"@ethersproject/basex": "^5.7.0",
|
||||
"@ethersproject/bignumber": "^5.7.0",
|
||||
"@ethersproject/bytes": "^5.7.0",
|
||||
"@ethersproject/constants": "^5.7.0",
|
||||
"@ethersproject/hash": "^5.7.0",
|
||||
"@ethersproject/logger": "^5.7.0",
|
||||
"@ethersproject/networks": "^5.7.0",
|
||||
"@ethersproject/properties": "^5.7.0",
|
||||
"@ethersproject/random": "^5.7.0",
|
||||
"@ethersproject/rlp": "^5.7.0",
|
||||
"@ethersproject/sha2": "^5.7.0",
|
||||
"@ethersproject/strings": "^5.7.0",
|
||||
"@ethersproject/transactions": "^5.7.0",
|
||||
"@ethersproject/web": "^5.7.0",
|
||||
"bech32": "1.1.4",
|
||||
"ws": "7.4.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@walletconnect/auth-client/node_modules/ws": {
|
||||
"version": "7.4.6",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
|
||||
"integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
|
||||
"engines": {
|
||||
"node": ">=8.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": "^5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@walletconnect/core": {
|
||||
"version": "2.0.0-rc.2",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.0.0-rc.2.tgz",
|
||||
@ -8993,11 +9054,15 @@
|
||||
}
|
||||
},
|
||||
"@walletconnect/auth-client": {
|
||||
"version": "0.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.3.2.tgz",
|
||||
"integrity": "sha512-iImgPUCfVTeYh2bIVvKG0gMOMGkYsFM/Jp5gV1WORRlm70xDbqcAId0cKx+L4Oc+r1vQ3iRUEatHNMWeFizFWQ==",
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.4.0.tgz",
|
||||
"integrity": "sha512-VyJZQvz8qsojorrvCi/68qVmKup8DznmPOuSexpmCAuodzQq+OUSeuTlEWFDckWdDUQMNTSt8//7HAayzGx//A==",
|
||||
"requires": {
|
||||
"@ethersproject/wallet": "^5.7.0",
|
||||
"@ethersproject/bytes": "^5.7.0",
|
||||
"@ethersproject/contracts": "^5.7.0",
|
||||
"@ethersproject/hash": "^5.7.0",
|
||||
"@ethersproject/providers": "^5.7.1",
|
||||
"@ethersproject/transactions": "^5.7.0",
|
||||
"@stablelib/random": "1.0.2",
|
||||
"@walletconnect/core": "2.0.0-rc.2",
|
||||
"@walletconnect/events": "1.0.0",
|
||||
@ -9010,6 +9075,41 @@
|
||||
"events": "^3.3.0",
|
||||
"pino": "6.7.0",
|
||||
"pino-pretty": "4.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ethersproject/providers": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.1.tgz",
|
||||
"integrity": "sha512-vZveG/DLyo+wk4Ga1yx6jSEHrLPgmTt+dFv0dv8URpVCRf0jVhalps1jq/emN/oXnMRsC7cQgAF32DcXLL7BPQ==",
|
||||
"requires": {
|
||||
"@ethersproject/abstract-provider": "^5.7.0",
|
||||
"@ethersproject/abstract-signer": "^5.7.0",
|
||||
"@ethersproject/address": "^5.7.0",
|
||||
"@ethersproject/base64": "^5.7.0",
|
||||
"@ethersproject/basex": "^5.7.0",
|
||||
"@ethersproject/bignumber": "^5.7.0",
|
||||
"@ethersproject/bytes": "^5.7.0",
|
||||
"@ethersproject/constants": "^5.7.0",
|
||||
"@ethersproject/hash": "^5.7.0",
|
||||
"@ethersproject/logger": "^5.7.0",
|
||||
"@ethersproject/networks": "^5.7.0",
|
||||
"@ethersproject/properties": "^5.7.0",
|
||||
"@ethersproject/random": "^5.7.0",
|
||||
"@ethersproject/rlp": "^5.7.0",
|
||||
"@ethersproject/sha2": "^5.7.0",
|
||||
"@ethersproject/strings": "^5.7.0",
|
||||
"@ethersproject/transactions": "^5.7.0",
|
||||
"@ethersproject/web": "^5.7.0",
|
||||
"bech32": "1.1.4",
|
||||
"ws": "7.4.6"
|
||||
}
|
||||
},
|
||||
"ws": {
|
||||
"version": "7.4.6",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
|
||||
"integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
|
||||
"requires": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@walletconnect/core": {
|
||||
|
@ -12,7 +12,7 @@
|
||||
"@chakra-ui/react": "^2.2.6",
|
||||
"@emotion/react": "^11.10.0",
|
||||
"@emotion/styled": "^11.10.0",
|
||||
"@walletconnect/auth-client": "^0.3.2",
|
||||
"@walletconnect/auth-client": "0.4.0",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"ethers": "^5.7.0",
|
||||
"events": "^3.3.0",
|
||||
|
@ -33,7 +33,7 @@ const Home: NextPage = () => {
|
||||
AuthClient.init({
|
||||
relayUrl:
|
||||
process.env.NEXT_PUBLIC_RELAY_URL || "wss://relay.walletconnect.com",
|
||||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID,
|
||||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID!,
|
||||
metadata: {
|
||||
name: "react-dapp-auth",
|
||||
description: "React Example Dapp for Auth",
|
||||
|
@ -15,7 +15,7 @@
|
||||
"@nextui-org/react": "1.0.8-beta.5",
|
||||
"@polkadot/keyring": "^10.1.2",
|
||||
"@solana/web3.js": "1.43.0",
|
||||
"@walletconnect/auth-client": "^0.3.2",
|
||||
"@walletconnect/auth-client": "0.4.0",
|
||||
"@walletconnect/utils": "2.0.0-rc.2",
|
||||
"bs58": "5.0.0",
|
||||
"cosmos-wallet": "1.2.0",
|
||||
|
@ -7,7 +7,7 @@ export let authClient: AuthClient
|
||||
|
||||
export async function createAuthClient(address: string) {
|
||||
authClient = await AuthClient.init({
|
||||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID,
|
||||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID!,
|
||||
relayUrl: process.env.NEXT_PUBLIC_RELAY_URL || 'wss://relay.walletconnect.com',
|
||||
iss: `did:pkh:eip155:1:${address}`,
|
||||
metadata: {
|
||||
|
Loading…
Reference in New Issue
Block a user