Wallet connect doesn't keep session after page refresh (Mobile) #4177
Unanswered
alexglekov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have an issue with walletConnect on mobile devices: when I refresh page my account become disconnected. I logged, connector tries to connect, but without any result
`import { coinbaseWallet, metaMask, walletConnect } from 'wagmi/connectors'
import { WALLET_CONNECT_PROJECT_ID } from '../constants'
import { ConnectorProvider } from '../types'
export const getWalletConnectorProviders = (
isMobile = false
): ConnectorProvider[] => {
const walletConnectProvider = walletConnect({
projectId: WALLET_CONNECT_PROJECT_ID
})
return [
{
id: 'io.metamask',
name: 'Metamask',
connector:
isMobile ? walletConnectProvider : metaMask({ extensionOnly: true })
},
{
id: 'coinbaseWalletSDK',
name: 'Coinbase',
connector: isMobile ? walletConnectProvider : coinbaseWallet()
},
{
id: 'walletConnect',
name: 'Wallet Connect',
connector: walletConnectProvider
}
]
}`
Beta Was this translation helpful? Give feedback.
All reactions