From 28e8f2def1dd7dfa45aa1058a27592dacf9a26dd Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Wed, 6 Nov 2024 08:00:14 -1000 Subject: [PATCH] expose keys-dev as a preference (#1442) * expose keys-dev as a preference * remove validation --- examples/testapp/src/context/CBWSDKReactContextProvider.tsx | 1 + packages/wallet-sdk/src/core/provider/interface.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/testapp/src/context/CBWSDKReactContextProvider.tsx b/examples/testapp/src/context/CBWSDKReactContextProvider.tsx index 1c1620a667..8170f94369 100644 --- a/examples/testapp/src/context/CBWSDKReactContextProvider.tsx +++ b/examples/testapp/src/context/CBWSDKReactContextProvider.tsx @@ -19,6 +19,7 @@ const SELECTED_SCW_URL_KEY = 'scw_url'; export const scwUrls = [ 'https://keys.coinbase.com/connect', 'https://keys-beta.coinbase.com/connect', + 'https://keys-dev.coinbase.com/connect', 'http://localhost:3005/connect', ] as const; export type ScwUrlType = (typeof scwUrls)[number]; diff --git a/packages/wallet-sdk/src/core/provider/interface.ts b/packages/wallet-sdk/src/core/provider/interface.ts index 5152c10039..7d89f4b450 100644 --- a/packages/wallet-sdk/src/core/provider/interface.ts +++ b/packages/wallet-sdk/src/core/provider/interface.ts @@ -54,7 +54,9 @@ export type Attribution = export type Preference = { /** - * @deprecated internal use only. + * The URL for the keys popup. + * By default, `https://keys.coinbase.com/connect` is used for production. Use `https://keys-dev.coinbase.com/connect` for development environments. + * @type {string} */ keysUrl?: string; /**