diff --git a/.changeset/cuddly-mails-lie.md b/.changeset/cuddly-mails-lie.md new file mode 100644 index 0000000000..c5285df9d2 --- /dev/null +++ b/.changeset/cuddly-mails-lie.md @@ -0,0 +1,6 @@ +--- +"@clerk/clerk-js": patch +"@clerk/types": patch +--- + +Introduce Coinbase Wallet Web3 provider types diff --git a/packages/clerk-js/src/ui/common/constants.ts b/packages/clerk-js/src/ui/common/constants.ts index f14f0e8af8..682cb66e66 100644 --- a/packages/clerk-js/src/ui/common/constants.ts +++ b/packages/clerk-js/src/ui/common/constants.ts @@ -92,6 +92,10 @@ export const WEB3_PROVIDERS: Web3Providers = Object.freeze({ id: 'metamask', name: 'MetaMask', }, + coinbase: { + id: 'coinbase', + name: 'Coinbase Wallet', + }, }); export function getWeb3ProviderData(name: Web3Provider): Web3ProviderData | undefined | null { diff --git a/packages/types/src/web3.ts b/packages/types/src/web3.ts index 2e9ced3606..de9c71bcb3 100644 --- a/packages/types/src/web3.ts +++ b/packages/types/src/web3.ts @@ -7,8 +7,9 @@ export interface Web3ProviderData { } export type MetamaskWeb3Provider = 'metamask'; +export type CoinbaseWeb3Provider = 'coinbase'; -export type Web3Provider = MetamaskWeb3Provider; +export type Web3Provider = MetamaskWeb3Provider | CoinbaseWeb3Provider; export const WEB3_PROVIDERS: Web3ProviderData[] = [ { @@ -16,6 +17,11 @@ export const WEB3_PROVIDERS: Web3ProviderData[] = [ strategy: 'web3_metamask_signature', name: 'MetaMask', }, + { + provider: 'coinbase', + strategy: 'web3_coinbase_signature', + name: 'Coinbase Wallet', + }, ]; interface getWeb3ProviderDataProps {