Skip to main content
Code: auth.keys.expired
HTTP: 401 Unauthorized

What happened

The API rejected the request during authentication before your route handler ran.

Safe message

We could not verify this request. Please try again later.
Use err.safeMessage or err.displayMessage in customer UI, not err.message.

Why this happened

The API key used for this request has passed its expiration date.

How to fix it

Create a new key pair in the dashboard and update MORAPAY_PUBLIC_KEY / MORAPAY_SECRET_KEY.

UI hint

Programmatic handling