My goal is to create a sign-up form for our app. The form lives on a web page outside Bubble.
It looks like Bubble isn’t logging the user in after signup; cookies are not set. How can I perform the login?
What I did
I created a backend API workflow which a new user can POST to:
The workflow contains one ‘Sign the user up’ action:
To trigger the process, I wrote an HTML form which causes the browser to POST to the workflow via page navigation:
<form method="POST" action="https://app.traduality.com/version-test/api/1.1/wf/sign-up-test">
<button>Sign up</button>
</form>
What I see
The API workflow executes and creates the user. The workflow responds with HTTP 302 (redirect). The browser redirects tohttps://app.traduality.com/version-test/?access_token=bus%7C171441***************x22**************&user_id=17144*********x6957*********&expires=86400
(index). When this new page loads, the user is not logged in.
What I want/expect
The API workflow executes and creates the user. The workflow responds with HTTP 302 (redirect). The browser redirects tohttps://app.traduality.com/version-test/
(index). When this new page loads, the user is logged in.
What I tried
I tried a ‘Sign the user up’ action and a ‘Log the user in’ option. Neither one sets the necessary cookies to log the user in.
I think this method used to work about two months ago. (I recently discovered an unrelated problem with our signup form, and in the process of fixing it, I discovered the problem I describe in this post.)