MemberSpace.getMemberInfo

A Synchronous function returns isLoggedIn and MemberInfo (if logged in).

const fn = () => {
  const data = MemberSpace.getMemberInfo();

  console.log(data);
  // either { isLoggedIn: true, memberInfo: {...} }
  // or     { isLoggedIn: false }
};

Last updated