Note: There is a new version of this API. If you're already using this module in your code, it will continue to work.
To use the CurrentMember API, import {currentMember}
from the wix-members-backend
module:
Note: The frontend CurrentMember APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.