magiclabs/magic-js

Magic RPC Error: [-32603] Internal error: User denied account access.

pondskai opened this issue ยท 1 comments

โœ… Prerequisites

  • Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
  • Are you running the latest SDK version?
  • Are you reporting to the correct repository (magic-sdk)?

๐Ÿ› Description

i try to use magic.wallet.showUI() in my dApp. it works fine when a users connects with email. When connects with metamask, i got an error Magic RPC Error: [-32603] Internal error: User denied account access.

๐Ÿงฉ Steps to Reproduce

  1. use magic link with metamask
  2. try show magic wallet widget

๐Ÿค” Expected behavior

the magic wallet widget shows

๐Ÿ˜ฎ Actual behavior

nothing shows and see an error Magic RPC Error: [-32603] Internal error: User denied account access.

๐Ÿ’ป Code Sample

๐ŸŒŽ Environment

Software Version(s)
magic-sdk ^20.0.1
Browser chrome
yarn
Operating System mac

Hello @pondskai ,

You can not show the MetaMask UI by calling showUI(), it will only work for the Magic wallet connections. For MetaMask, the user may click the MetaMask icon in their browser to open the view of that wallet. Please refer to our doc on showUI

showUI
source