Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The size of qrcode is too small to scan when use SDK's connectAndSign #1144

Open
TheBestOrNothing opened this issue Nov 23, 2024 · 0 comments

Comments

@TheBestOrNothing
Copy link

SDK

Web

Provide environment information

The SDK runnig in the chrome on desktop. To import MetaMask SDK into my pure JavaScript dapp to connectAndSign with the MetaMask. There is no browser extension in the chrome, so the qrcode dialog popup. But the size of qrcode is too small to scan.

MetaMask SDK Version

v0.30.1 and v0.30.2

MetaMask Mobile app Version

v7.33.0(1460)

What browser are you using? (if relevant)

Google Chrome Version 131.0.6778.71

How are you deploying your application? (if relevant)

No response

Describe the Bug

The size of qrcode is too small to scan when use SDK's connectAndSign. The following are popup dialog and html info.

mm-wrong
mm-wrong-svg

Expected Behavior

The expected size of qrcode when use SDK's connect rather than connectAndSign. The following are popup dialog and html info.

mm-right
mm-right-svg

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

async function connet() {
    const sdk = new MetaMaskSDK.MetaMaskSDK({
        dappMetadata: {
            name: "MetaMask Oauth",
        },
        redirectUri: window.location.href,
        logging: {
            sdk: true,
            level: 'debug',
        },
        enableAutomaticQr: true, 
        checkInstallationImmediately: true,
        useDeeplink: true,
    });
    const siweMessage = "wants you to sign in with your";
    const sign = await sdk.connectAndSign({ msg: siweMessage });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant