Shopify Development

Shopify Passkey Verification Stuck? A DevTools Fix for LastPass on Mac & Chrome

As a Shopify migration expert at Shopping Cart Mover, I've guided countless merchants through the intricacies of setting up, managing, and optimizing their online stores. While many challenges involve complex data migrations or intricate app integrations, sometimes the most frustrating hurdles are the seemingly small, unexpected technical glitches that bring daily operations to a halt. These moments highlight the incredible value of the Shopify Community forums – a place where collective wisdom shines, and ingenious workarounds emerge.

Recently, a thread caught my attention, detailing a specific issue that could easily stump even seasoned store owners: a conflict between Shopify's account verification process and LastPass passkey management on macOS using Chrome. A fellow community member, melvin99, shared a brilliant, elegant solution that I'm eager to break down for you, ensuring your Shopify journey remains as smooth as possible.

Chrome DevTools console showing JavaScript code to fix Shopify LastPass passkey issue
Chrome DevTools console showing JavaScript code to fix Shopify LastPass passkey issue

The Annoying Block: Shopify's Modal Dialog vs. LastPass Passkey

Picture this scenario: You're in your Shopify admin, perhaps setting up a new payment gateway, adjusting critical store settings, or performing another security-sensitive action. Shopify, with its robust security protocols, prompts you to verify your account using a passkey. You're on your trusty macOS machine, browsing with Chrome, and LastPass is your chosen tool for managing passkeys.

Here's where the workflow grinds to a halt: Shopify displays a

element on your screen, requesting your verification. Simultaneously, your LastPass passkey popup appears, ready for your input. The problem? The LastPass popup is frustratingly stuck behind Shopify's modal dialog. You can clearly see it, but it's unresponsive – you can't click, type, or interact with it in any way. It's like looking at a solution through a one-way mirror; visible but inaccessible.

Why This Happens: A Deeper Dive into Modal Dialogs

To understand the fix, it helps to grasp the underlying technicality. As astute community member Moeed pointed out, the issue stems from how Shopify's dialog is implemented. When a web application uses a 'modal dialog' (often invoked via dialog.showModal() in modern web development), it creates a specific user experience. This type of dialog effectively places an 'inert backdrop' over the rest of the page content. This backdrop isn't just a visual overlay; it's designed to intercept all pointer events (clicks, taps) and keyboard interactions, ensuring that the user must interact with the dialog before proceeding with anything else on the page.

While this is a standard and often desirable security feature – preventing accidental clicks outside a critical prompt – it creates an unintended conflict with browser extensions like LastPass. The LastPass passkey popup, being an extension-generated element, attempts to render on top, but the modal dialog's backdrop effectively 'traps' it, making it visible but functionally inert. Attempts to simply delete the dialog via DevTools would break Shopify's verification flow, leaving you in a worse state.

The Ingenious Workaround: Converting to a Modeless Dialog

The brilliance of melvin99's solution lies in its simplicity and understanding of web standards. Instead of removing the dialog entirely, which would disrupt Shopify's expected flow, the trick is to convert the dialog from a modal state to a modeless state. This effectively removes the blocking backdrop while keeping the dialog element alive and functional, allowing both Shopify and LastPass to coexist temporarily.

Step-by-Step Guide to Unblocking Your Shopify Verification

Follow these steps carefully to resolve the LastPass passkey blocking issue:

  1. Encounter the Problem: You're on your Shopify admin, attempting to verify your account, and the LastPass passkey popup is visible but unclickable behind Shopify's modal dialog.
  2. Open Chrome Developer Tools: On macOS, you can quickly open DevTools by pressing Command + Option + I. Alternatively, go to Chrome's menu (three dots in the top right) > More Tools > Developer Tools.
  3. Navigate to the Console Tab: Within the DevTools panel, click on the 'Console' tab. This is where you'll input the workaround code.
  4. Identify the Dialog Element: In the Console, type the following JavaScript code and press Enter. This will select the first element on the page and assign it to a constant named d:
    const d = document.querySelector('dialog');
  5. Convert to Modeless: Now, execute the following two lines of code, pressing Enter after each. This sequence first closes the modal dialog (removing the backdrop) and then re-opens it as a modeless dialog (without the blocking backdrop):
    d.close();
    d.show();
  6. Interact with LastPass: You should now find that the LastPass passkey popup is clickable and fully interactive. Complete your passkey verification process.
  7. Continue Shopify Verification: Once LastPass has done its job, return your attention to the Shopify dialog, which is now modeless and still awaiting your input. You can now proceed with the rest of Shopify's verification flow.
  8. Post-Verification Tip: Melvin99 also suggested that after resolving the immediate issue, it might be beneficial to review your passkey setup. Consider removing the old LastPass passkey and creating a new one, perhaps using Apple/iCloud passkeys for a potentially smoother, integrated experience moving forward.

Beyond the Fix: Best Practices and Community Power

This specific workaround highlights a broader truth in e-commerce management: unexpected technical interactions can arise, especially when combining powerful platforms like Shopify with various browser extensions and operating systems. While this fix addresses a particular scenario, it also underscores the importance of:

  • Understanding Your Tools: Knowing a little about how web pages and browser extensions interact can be a powerful troubleshooting skill.
  • Robust Security Practices: Passkeys are a fantastic step forward in online security, offering phishing-resistant authentication. Ensuring your passkey management system (LastPass, iCloud Keychain, etc.) is up-to-date and functioning optimally is crucial.
  • Leveraging the Community: The Shopify Community forums are an invaluable resource for sharing insights, finding solutions, and reporting bugs directly to Shopify's development team (especially via community.shopify.dev for developer-centric issues).

For merchants looking to streamline their operations, whether it's optimizing their existing store or considering a full platform migration, dealing with such technical hiccups can be a distraction. At Shopping Cart Mover, we specialize in ensuring your Shopify store runs seamlessly, from initial setup to complex integrations and beyond. Don't let minor technical glitches derail your e-commerce ambitions.

This workaround is a testament to the power of a proactive community. By sharing solutions, we empower each other to navigate the digital landscape more effectively. Keep an eye out for similar insights, and remember, a little DevTools magic can go a long way!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases