feat(auth): improve error messages for expired sessions, invalid credentials, and network issues (PULSE-25) #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR standardizes authentication and API error handling across the application. It replaces generic or raw server error messages with safe, actionable copy (e.g., "Session expired, please sign in again" vs "Network error, please try again") to improve UX and prevent sensitive detail exposure.
Changes
lib/utils/authErrors.tsto map status codes and error types to user-facing messages.exchangeAuthCodeandsetSessionActionto return structured error codes (expired,invalid,network) instead of raw error strings.getAuthErrorMessagehelper.Testing