Sign in/login with a Web Page Not Syncing

Hey,

I’m trying to configure a pretty basic OAuth2 flow with Bubble Mobile. I didn’t find a plugin for Apple logins, so I implemented the backend myself, and I managed to get everything working except the very last bit – after the user is logged into the web, the app simply doesn’t register that a user is logged in, and therefore gets stuck. The full flow is:

  1. App calls “sign in/login with a web page”, opening the Bubble web page /oauth-start.
  2. This web page redirects to the authorization URL.
  3. After the user accepts, the callback URL sends them to a custom backend.
  4. The backend exchanges the code for a request token, and the request token for the user’s email address, and redirects to the web Bubble web page /oauth-finish.
  5. The web page logs the user in (I’m omitting security details for simplicity).
  6. At this point, as far as I understand, the app should be aware the user is logged in – i.e. the whole purpose of the action is to provide some bridge and sync this state between mobile and web, no? However, my “current user” in mobile stays logged out (e.g. a condition “when user is logged in” never fires).

Am I doing something wrong? Thanks!

(@nick.carroll @fede.bubble – would appreciate your support)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.