Retrieves the currently logged-in member's account.
function getCurrentMemberAccount(): Promise<GetCurrentMemberAccountResponse>;
import { accounts } from "@wix/loyalty";
async function getCurrentMemberAccount() {
const response = await accounts.getCurrentMemberAccount();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.