You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to add a simple api-client.ts file to handle all API requests in a consistent way.
It wraps axios and works on both client and server using next-auth for session-based auth. It also auto-trims data, handles common HTTP methods, and returns a clear success/error response.