Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-hotels-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/shared': patch
---

Apply application name to Coinbase Wallet requests
7 changes: 7 additions & 0 deletions packages/shared/src/internal/clerk-js/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,19 @@ export function createWeb3(moduleManager: ModuleManager) {
return null;
}
const sdk = coinbaseModule.createCoinbaseWalletSDK({
appName:
(typeof window !== 'undefined' &&
// @ts-expect-error missing types
(window.Clerk as any)?.__internal_environment?.displayConfig?.applicationName) ||
(typeof document !== 'undefined' && document.title) ||
'Web3 Application',
preference: {
options: 'all',
},
});
return sdk.getProvider();
}

if (provider === 'base') {
if (__BUILD_DISABLE_RHC__) {
clerkUnsupportedEnvironmentWarning('Base');
Expand Down
Loading