DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsTroubleshootingAuthentication Issues
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
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
CORS ErrorsAuthentication IssuesCart Not UpdatingWebhook Not FiringSlow API ResponsesImage Not LoadingPayment Failures
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Authentication Issues

Debug login, token, and session problems.

Updated March 29, 2026

On this page
  • Common Auth Problems
  • "Unauthorized" on every request
  • Login returns error
  • Token expired

Common Auth Problems

"Unauthorized" on every request

  • Check that NEXT_PUBLIC_DASH4DEVS_API_KEY is set in .env.local
  • Verify the key starts with pk_
  • Test with dash.ping()

Login returns error

  • OTP codes expire after 10 minutes
  • Check email for the correct code
  • Verify the email exists as a customer

Token expired

  • Access tokens expire after 24 hours
  • The SDK auto-refreshes tokens if a refresh token is available
  • Ensure you stored the refresh token from login

See Login / Logout for auth flow details.

PreviousCORS ErrorsNextCart Not Updating

On this page

  • Common Auth Problems
  • "Unauthorized" on every request
  • Login returns error
  • Token expired