methods/check-login.js

  1. /**
  2. * @method
  3. * @name EcomPassport#checkLogin
  4. * @description Check if customer is identified (does not validate authentication).
  5. *
  6. * @returns {boolean}
  7. *
  8. * @example
  9. ecomPassport.checkLogin()
  10. */
  11. export default ({ getCustomerName }) => Boolean(getCustomerName())