Login / Logout Actions not working

Hi, I have always used the default login / logout actions. First the logout action acted like an empty button and now the login action is acting like an empty button. Is anyone else facing this issue and is there a solution on how to resolve it or build my own login / logout solution - I have already built my own create new user solution (which works properly) because that too was acting like an empty button.

Thanks in advance

Hello @endangeredwildlife, can you please clarify more the issue you’re experiencing? And if you could share a video or image for it, I would appreciate it.

Thank you!

Ali Bazzi

I have these 2 buttons - Login and Log out but literally when you click the buttons they do nothing at all. The log out button has the same issue with a second app I am working with - I don’t know why they aren’t responding in any way.

Can you please share a preview URL for the app, so I can test the buttons?

Thank you!

Ali Bazzi

Hi Ali-Bazzi

I have managed to make 2 screen recordings for you to show what happens when I click the 2 buttons. I logged into the app now and clicked preview and it said the app does not exist and when I refreshed it returned but seems to be full of bugs for example I have welcome back username but the username is now not showing. This happened with my other app and all my formulas and links started becoming bugged but hopefully it will clear - last time it took about 2 days to clear.

Hi @endangeredwildlife,

What do you mean by “do nothing at all”? Log in action sends the email/password to the Adalo app backend authentication endpoint, and if the combination is correct, gets back the authentication token. Logout action removes the authentication token. Did you check in the network console if this happens or not?
Just in case: Log in / Log out actions do not navigate your user to another screen. Therefore in your logout flow you need to add another action to go to Welcome (or other) screen. As for your log in action, it is conditional - so if your user isn’t logged in on the next screen, maybe the condition isn’t met.

Just in case: using create user + log in instead of sign-up action is possible, but it opens a door to a whole set of mistakes which could be done by an app maker.

Best,
Victor.

Thank you I think it might be working now

1 Like

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