Open saitamasan0220 opened 1 month ago
Google login works now but fetchUserId in LiveFeed.tsx doesn't
fetchUserId
LiveFeed.tsx
fetchUserId called by fetchAndSetUserId doesn't return anything:
fetchAndSetUserId
export const fetchUserId = async () => { try { const response = await axios.get('/api/user/getUserId'); return response.data.userId ?? null; } catch (error) { console.error('Failed to fetch user ID:', error); return ''; } };
so userAuth is not set
userAuth
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Google login works now but
fetchUserId
inLiveFeed.tsx
doesn'tfetchUserId
called byfetchAndSetUserId
doesn't return anything:so
userAuth
is not set