UNPKG

@ecomplus/passport-client

Version:

Handle customer authentication with E-Com Plus Passport

15 lines (11 loc) 278 B
/** * @method * @name EcomPassport#checkLogin * @description Check if customer is identified (does not validate authentication). * * @returns {boolean} * * @example ecomPassport.checkLogin() */ export default ({ session }) => Boolean(session.auth && session.auth.id)