Skip to content

fix: stabilize dashboard authentication and standardize api responses#18

Merged
T9ner merged 1 commit into
mainfrom
feat/dashboard-migration
Apr 9, 2026
Merged

fix: stabilize dashboard authentication and standardize api responses#18
T9ner merged 1 commit into
mainfrom
feat/dashboard-migration

Conversation

@T9ner

@T9ner T9ner commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Resolves issues found in the dashboard related to authentication states and API format standardisation.

Summary of changes:

  • Standardized API endpoints (Transactions, Webhooks, API settings) to follow the envelope format {success: true, data: {items, page, total, limit}}.
  • Hardened user sign-out action by completely wiping out the pv_token cookie.
  • Created an error boundary with interceptor to track 401 Unauthorized responses specifically originating from /dashboard/* endpoints. It automatically kicks out expired JWTs and routes users safely to the sign-in screen without silent API failures.

@T9ner
T9ner merged commit b399cd3 into main Apr 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant