Skip to main content
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, or null when there is no customer.