DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsSDK Referencedash.auth
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
admin moduleDashClientaffiliates moduledash.productsauth moduledash.categoriesblog moduledash.cartbrands moduledash.checkoutcalendar moduledash.authCart Moduledash.customercategories moduledash.blogcheckout moduledash.reviewscoa moduledash.shippingcontact moduledash.discountscontent-types moduledash.locationsdash.getGlobalDatadiscount-store moduledash.contactearn-points moduledash.seoemail moduleforms modulehtml-templates modulelegal modulemarketing modulemedia modulepage-groups modulepages modulepayment modulePayment Methods Moduleproducts modulereferrals moduleseo moduleshipping modulesitemap moduletax moduleSubscriptions Moduletracking moduleupload moduleinsights modulesurvey module
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

dash.auth

Customer authentication methods.

Updated March 29, 2026

On this page
  • dash.auth
  • Properties
  • Authentication Methods
  • Profile Methods
  • Order Methods
  • Other Methods

dash.auth

Properties

typescript
dash.auth.customer        // Customer | null
dash.auth.token           // string | null
dash.auth.refreshToken    // string | null
dash.auth.isAuthenticated // boolean

Authentication Methods

typescript
await dash.auth.requestOTP("email@example.com", { accepts_marketing: true })
const { customer } = await dash.auth.verifyOTP({ email: "...", code: "123456" })
const { customer } = await dash.auth.login({ email: "...", password: "..." })
await dash.auth.setPassword("newPassword123!")
await dash.auth.requestPasswordReset("email@example.com")
await dash.auth.resetPassword({ email: "...", code: "...", password: "..." })
await dash.auth.refreshAccessToken()
dash.auth.setToken(accessToken, refreshToken)
await dash.auth.logout()

Profile Methods

typescript
const { customer } = await dash.auth.getProfile()
const { customer } = await dash.auth.updateProfile({ first_name: "Jane" })
const { customer } = await dash.auth.updateMetadata({ key: "value" })

Order Methods

typescript
const { orders } = await dash.auth.getOrders({ limit: 10 })
const { order } = await dash.auth.getOrder("ord_abc")

Other Methods

typescript
const { banned } = await dash.auth.checkBan()
await dash.auth.mergeCart("cart_xyz")

See Authentication for full details.

Previouscalendar moduleNextCart Module

On this page

  • dash.auth
  • Properties
  • Authentication Methods
  • Profile Methods
  • Order Methods
  • Other Methods