From eff16f3e72b8b0f8daa1fafd7d68aafd9868e52e Mon Sep 17 00:00:00 2001 From: Cali93 <32299095+Cali93@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:34:19 +0700 Subject: [PATCH] chore(iam-staging): bug bash on Cloud Auth staging --- apps/laboratory/next.config.mjs | 2 +- packages/siwx/src/configs/CloudAuthSIWX.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/laboratory/next.config.mjs b/apps/laboratory/next.config.mjs index 4fc9375088..ed49505f38 100644 --- a/apps/laboratory/next.config.mjs +++ b/apps/laboratory/next.config.mjs @@ -16,7 +16,7 @@ const cspHeader = ` style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src * 'self' data: blob: https://walletconnect.org https://walletconnect.com https://secure.walletconnect.com https://secure.walletconnect.org https://tokens-data.1inch.io https://tokens.1inch.io https://ipfs.io https://appkit-lab.reown.org; font-src 'self' https://fonts.gstatic.com; - connect-src 'self' https://react-wallet.walletconnect.com https://rpc.walletconnect.com https://rpc.walletconnect.org https://relay.walletconnect.com https://relay.walletconnect.org wss://relay.walletconnect.com wss://relay.walletconnect.org https://pulse.walletconnect.com https://pulse.walletconnect.org https://api.web3modal.com https://api.web3modal.org wss://www.walletlink.org https://o1095249.ingest.sentry.io https://quote-api.jup.ag https://mempool.space; + connect-src 'self' https://react-wallet.walletconnect.com https://rpc.walletconnect.com https://rpc.walletconnect.org https://relay.walletconnect.com https://relay.walletconnect.org wss://relay.walletconnect.com wss://relay.walletconnect.org https://pulse.walletconnect.com https://pulse.walletconnect.org https://api.web3modal.com https://api.web3modal.org https://api-web3modal-staging.walletconnect-v1-bridge.workers.dev wss://www.walletlink.org https://o1095249.ingest.sentry.io https://quote-api.jup.ag https://mempool.space; frame-src 'self' https://verify.walletconnect.com https://verify.walletconnect.org https://secure.walletconnect.com https://secure.walletconnect.org https://secure.reown.com https://widget.solflare.com/ ${secureSiteDomain}; object-src 'none'; base-uri 'self'; diff --git a/packages/siwx/src/configs/CloudAuthSIWX.ts b/packages/siwx/src/configs/CloudAuthSIWX.ts index 91fad29ed4..a0efcf2c15 100644 --- a/packages/siwx/src/configs/CloudAuthSIWX.ts +++ b/packages/siwx/src/configs/CloudAuthSIWX.ts @@ -1,4 +1,4 @@ -import { ConstantsUtil, type CaipNetworkId } from '@reown/appkit-common' +import { type CaipNetworkId } from '@reown/appkit-common' import { AccountController, ApiController, @@ -85,11 +85,11 @@ export class CloudAuthSIWX implements SIWXConfig { key: Key, params: CloudAuthSIWX.Requests[Key]['body'] ): Promise { - const { projectId, st, sv } = this.getSDKProperties() + const { st, sv } = this.getSDKProperties() const token = this.getStorageToken() const response = await fetch( - `${ConstantsUtil.W3M_API_URL}/auth/v1/${key}?projectId=${projectId}&st=${st}&sv=${sv}`, + `https://api-web3modal-staging.walletconnect-v1-bridge.workers.dev/auth/v1/${key}?projectId=f5b3ae2fcb87d796d3e565dba18047e2&st=${st}&sv=${sv}`, { method: RequestMethod[key], body: params ? JSON.stringify(params) : undefined,