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 APIs in CurrentMember
are only partially functional when previewing your site. View a published version of your site to see their complete functionality.