getMember( )


Retrieves the currently logged-in member.

The getMember() function returns a Promise that resolves to the currently logged-in member.

Notes:

  • Currently, this function throws an error if a member isn't logged in. However, the frontend currentMember.getMember() resolves to undefined if a member isn't logged in. This function may change in the future to align with the frontend currentMember.getMember().
  • 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>
Did this help?