To use the CurrentMember API, import { currentMember }
from the @wix/site-members
module:
Note: The APIs in CurrentMember
are only partially functional when previewing your site. View a published version of your site to see their complete functionality.