Hey there!
I noticed a small routing/auth bug while navigating the app. If a user isn't logged in yet and clicks on the "Profile" tab in the sidebar, it tries to fetch the data anyway and throws an Error loading profile: Request failed with status code 404 instead of redirecting them to the login or signup page.
To reproduce:
Open the site without logging in (or in an incognito window).
Click "Profile" on the left sidebar.
See the 404 error on the screen.
I plan to add a simple auth check to the Profile route. If there is no active session/token, it will redirect the user to the login screen before making the API call.
@Ashmita1206 Could you please assign this issue to me under GSSoC?
Thanks!
Hey there!
I noticed a small routing/auth bug while navigating the app. If a user isn't logged in yet and clicks on the "Profile" tab in the sidebar, it tries to fetch the data anyway and throws an Error loading profile: Request failed with status code 404 instead of redirecting them to the login or signup page.
To reproduce:
Open the site without logging in (or in an incognito window).
Click "Profile" on the left sidebar.
See the 404 error on the screen.
I plan to add a simple auth check to the Profile route. If there is no active session/token, it will redirect the user to the login screen before making the API call.
@Ashmita1206 Could you please assign this issue to me under GSSoC?
Thanks!