Stu Mason
Stu Mason

Activity

StuMason/cleanconnect
TidyLinker.com
TypeScript
Pull Request Merged

PR #103 merged: fix: resolve 419 CSRF errors on support form

Summary

  • Refreshes CSRF token via /sanctum/csrf-cookie before submitting the support form, preventing stale token 419 errors
  • Uses the existing refreshCsrfToken() helper from @/lib/utils

Test plan

  • Open the support widget on any page and submit — should succeed without 419
  • Leave the page idle for a while, then submit — should still work (fresh token fetched on submit)
  • Test as both logged-in and guest users
+10
additions
-1
deletions
1
files changed