How to get user loggedin information?

I am not able to show some sections. Like to know that if user is logged in than show this section( user not logged in ). But How? Any help !

You can use the getMember function from wix-members . authentication API.

If it returned null, then the user is not logged in, then you can collapse/expand the sections.