customerContext reads basic customer session information: whether the customer is authenticated, and their name and email.
Global name
API
Methods
isAuthenticated
Returns whether the customer is authenticated.getCustomer
Returns the current customer information, ornull when there is no customer.