Magic link login is now supported for mobile apps

Hey everyone,

I’m Nick, a product manager at Bubble, and I’m happy to share a small but mighty mobile update.

Magic link login is now supported for mobile apps! This means you can offer passwordless authentication in your Bubble mobile app without needing an accompanying web app.

Why this matters

Magic links have become a popular way to let users log in without remembering a password. The flow is simple: A user enters their email address, receives a one-time login link via email, clicks the link, and is automatically authenticated and logged into the app.

Until now, magic login links on Bubble could only redirect users to a web page. This was an unnecessary friction point, especially if you only needed a mobile app, and we wanted to remove that dependency entirely.

What’s changed

With this update, magic login links can now redirect directly to mobile views in your Bubble mobile app. When you set up the Send magic link login workflow action from a mobile view, you’ll see your mobile views as redirect options for both successful login and failure scenarios.

Here’s how it works

In the mobile workflow action, you’ll see these options:

On successful login

  • Navigate on login: Select a mobile view where your users will be redirected after they’ve successfully authenticated
  • Send data on login: Pass view properties to the destination view (just like you would with the Go to view workflow action)

On login failure

  • Navigate on failure: Select a mobile view where your users will be redirected if authentication fails
  • Send data on failure: Pass view properties to the failure view if needed

If you’re setting up magic links from a backend workflow and your app has both web and mobile versions, you’ll see both pages and views in the dropdown with clear headers to differentiate between them.

How to get started

The feature is live now. If you’re already using magic link login in a mobile app with a web workaround, you can update your workflow action to redirect to a mobile view instead. If you’re setting up magic links for the first time, just configure the Send magic link login action from your mobile view and select your target mobile views.

For more details on setting up magic link authentication in mobile apps, check out the manual.

Let me know if you have any questions!

— Nick and the Mobile team

7 Likes

That’s good news. Thanks @nick.carroll !

thank you very much for this milestone! i recently test it in bubblego and when open external web page asked me to open bubblego and when i click open land me in the targeted view but without log me in! is this issue happen because i use bubblego? or something wrong in my workflow? i will describe user journey that might be the issue→
i used Twilio OTP Messaging, when user click send OTP→ generate magic link and store it in ‘OTP_Request’ data type where the 6-digit Code generated and stored, after user received the code and insert it→ open external web page containing stored magic link, navigate user to the page asking to open app again. when user redirected to the targeted view.. the user still logged out!.

its solved! i updated bubblego and all goes perfect, thanks for the update!!:star_struck:

1 Like

The Magic Link isn’t working as expected. When I click the link in the email, the browser starts to load the page but then it just stops. I’ve tested it both by clicking directly in the email and copying the link to the browser, but it doesn’t trigger the application/workflow as it should.