Home > @vsf-enterprise/bigcommerce-theme > useCustomerStore

# useCustomerStore variable

Customer [Pinia](https://pinia.vuejs.org/) store.

Signature:

useCustomerStore: import("pinia").StoreDefinition<"customerStore", CustomerState, {
    isAuthenticated: (state: {
        shipping: {
            first_name: string;
            last_name: string;
            company: string;
            address1: string;
            address2?: string;
            city: string;
            state_or_province: string;
            postal_code: string;
            country_code: string;
            phone: string;
            address_type?: string;
            customer_id: number;
            id: number;
            country: string;
            form_fields?: {
                address_id: number;
                name: string;
                value: string | number | string[];
            }[];
        }[];
        currentCustomer: {
            id?: number;
            authentication?: {
                force_password_reset?: boolean;
                new_password?: string;
            };
            company?: string;
            customer_group_id?: number;
            email: string;
            first_name: string;
            last_name: string;
            notes?: string;
            phone?: string;
            registration_ip_address?: string;
            tax_exempt_category?: string;
            date_created?: string;
            date_modified?: string;
            accepts_product_review_abandoned_cart_emails?: boolean;
            store_credit_amounts?: {
                amount: number;
            }[];
            channel_ids?: number[];
            form_fields?: {
                customer_id?: number;
                name: string;
                value: string | number | string[];
            }[];
            addresses?: {
                first_name: string;
                last_name: string;
                company: string;
                address1: string;
                address2?: string;
                city: string;
                state_or_province: string;
                postal_code: string;
                country_code: string;
                phone: string;
                address_type?: string;
                customer_id: number;
                id: number;
                country: string;
                form_fields?: {
                    address_id: number;
                    name: string;
                    value: string | number | string[];
                }[];
            }[];
            address_count?: number;
            attribute_count?: number;
        };
    } & {}) => boolean;
}, {}>