Authenticating with Bubble's 2FA on RN mobile app

Hi everyone,

Just wondering if anyone has successfully implemented Bubble’s 2FA on their native mobile app? We’re currently trying to get things working using WebView for the authentication flow, but are struggling to retrieve any session token information following a successful 2FA code check.

For users without 2FA enabled, we can obtain session tokens from the standard “Log the user in” workflow action and return this API data. But this approach throws the following error for a 2FA-enabled user:

"statusCode": 400,
"reason": "Missing session key. This may be due to missing cookies or an expired session",
"message": "No translation"

Any help or suggestions would be much appreciated. Thanks!

For anyone else who is curious about whether you can offer secure authentication, including 2FA, for a native mobile app that talks to your Bubble application, bad news, unfortunately. Here’s Bubble’s response.

We’ll be moving our application off Bubble as a result. It’s becoming evident that there are just too many limitations, especially when it comes to native mobile integration.