I am trying to hide/show login/logout buttons when users are logged in or not.
I am using the whoami method and setting the dynamic attributes based on if the whoami query is empty or not
Below are screenshots, any help would be much appreciated, I have been trying this for a couple of days. I tried watching tutorial videos over and over and still no luck.
is, but you can simply check the identity of the user, if an identity is returned show the button, otherwise hide it. You can use conditional region for that.
I have an API that calls the security logout
And a page called logout.
So when: click on logout, then navigate to page logout where is a server connect to that API.
Also you can put a server connect with no auto load and call it with the button.
On dynamic success event of server connect, then navigate to: succesfully logout page
Don't worry!
You can split this, and create a new topic for the logout part, so others can see what's going on and help you with that!
(Don't forget to mark your answer as a solution to this thread)