Profile Management
Update customer profile, addresses, and preferences.
Updated
On this page
Get Profile
Retrieve the authenticated customer's profile:
import dash from "@/lib/dash"
const { customer } = await dash.auth.getProfile()
// customer = {
// id: "cust_abc123",
// email: "customer@example.com",
// first_name: "Jane",
// last_name: "Doe",
// phone: "555-0123",
// has_password: true,
// has_address: true,
// address: {
// address_line1: "123 Main St",
// city: "Austin",
// state: "TX",
// zip_code: "78701",
// country: "US"
// },
// loyalty_points: 250,
// tier: "gold",
// tier_name: "Gold Member"
// }