I am trying to implement login through backend API with this as the reference: Reference | Bubble
My use-case is of implementing login via a third party (Firebase in my case) and then login the user in Bubble via an API call by passing firebase token.
As per the documentation it seems possible as you can see in the highlighted text in this screenshot.
This seems to be working fine. However, unfortunately, after the user logs in, the contents of the page do not automatically reflect that user has logged in. I need to refresh the page to make user appear logged in. In my case I want to avoid refreshing the page.
After long long discussion threads with Bubble support and making them understand the issue, they seem to conclude that “need to refresh” is expected behaviour. But they don’t seem to give a reason behind that, and it is not documented anywhere too.
You can try it out at https://beegle.app/version-test/test-login-api (The page has buttons to log a user in and the box on the right shows user’s details and whether user is logged in)
There are two implementations I have tried.
- “Simple login via API connector”: Here I tried to call API via API connector to remove the custom code bit altogether as Bubble support insisted on it. This one doesn’t even logs the user in and not even Refresh works.
Has anyone worked on such a problem and found a solution? Also don’t you guys think that this need of Refresh is a bug?