Landing page redesign, dashboard improvements & new settings sections #67

Merged
uz1mani merged 60 commits from staging into main 2026-03-22 16:17:38 +00:00
64 changed files with 8380 additions and 1594 deletions
Showing only changes of commit ef21004519 - Show all commits

View File

@@ -238,8 +238,9 @@ async function apiRequest<T>(
if (response.status === 401) {
// * Attempt Token Refresh if 401
if (typeof window !== 'undefined') {
// * Prevent infinite loop: Don't refresh if the failed request WAS a refresh request (unlikely via apiRequest but safe to check)
if (!endpoint.includes('/auth/refresh')) {
// * Skip token refresh for public endpoints (they use password auth, not session tokens)
// * and for refresh requests themselves (prevent infinite loop)
if (!endpoint.includes('/auth/refresh') && !endpoint.includes('/public/')) {
if (isRefreshing) {
// * If refresh is already in progress, wait for it to complete (or fail)
return new Promise<T>((resolve, reject) => {