fix: add redirect to login for unauthorized access in FeedPage
All checks were successful
Build and Deploy Thoughts / build-and-deploy-local (push) Successful in 1m38s

This commit is contained in:
2025-09-14 21:30:12 +02:00
parent d6c42afaec
commit e2494135d6
2 changed files with 7 additions and 3 deletions

View File

@@ -176,7 +176,6 @@ export const loginUser = (data: z.infer<typeof LoginSchema>) =>
token
);
// --- User API Functions ---
export const getUserProfile = (username: string, token: string | null) =>
apiFetch(`/users/${username}`, {}, UserSchema, token);