User Authentication

I have a button which it’s ID is “rateButton”.When the user clicks this button the browser should control if the user is logged in or not.If the user is logged in then it shoud pop a form which ID it’s (ratingForm) which I already developed and if the user is not logged in it should pop a normal div which ID is “loginPrompt” which I also developed in webflow.How can I manage this user authentication and this behaviour on webflow?

Depends on what you’re using for auth.
Memberstack is probably the easiest way, and has the cleanest JS API to query login state.