> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current customer

> `Smile.customer.current()`

This method retrieves the currently logged-in customer from the cache, without making an API call.

## Returns

This method returns a [customer object](/js/resources/customer/object) if a customer is currently logged in, or `null` if no customer is authenticated.

<Panel>
  ```javascript JavaScript theme={null}
  const customer = Smile.customer.current();

  if (customer) {
    // Handle the customer object
  } else {
    // No customer is currently logged in
  }
  ```
</Panel>
