Hide the login button after logged in

Hi! I use the auth login because I did the custom API authentication but after the request is successful, the button still appear and it seems that the user didn't log in.
Is there a way to hide/ disable the button after the user log in?
Thank you!

I have used the hidden field to hide it once there is other data in the app. For example, once custom auth was authenticated, I would fire off another api to get some data, and once that data was not undefined, the button would be hidden
{{customerID.value != undefined}}