getMember( )


Retrieves the currently logged-in member.

The getMember() function returns a Promise that resolves to the currently logged-in member, or undefined if a member isn't logged in.

Notes:

  • The member data in the resolved promise will only include custom fields from your site's contacts if they are added to your site Members in your site's dashboard.
  • The APIs in CurrentMember are only partially functional when previewing your site. View a published version of your site to see their complete functionality.
Method Declaration
Copy
Method Parameters
optionsFieldsetOptions

Fieldset options.

Returns
Return Type:Promise<Member>
Was this helpful?
Yes
No