Closed Vijaykv5 closed 8 months ago
@Vijaykv5 is attempting to deploy a commit to the EddieHub Team on Vercel.
A member of the Team first needs to authorize it.
The modification in the code alters the error handling for a POST
request. Instead of redirecting users to a login page upon encountering an error, it now sends them back to the home page with an error alert and message indicating an invalid session.
File Path | Change Summary |
---|---|
src/app/api/rate/... |
Redirect on error changed from "/auth/login" to "/?alert=error&message=Invalid Session". |
🐇✨ In the maze of code, a hop and a tweak, No more login redirect, when the session is weak. Now it's home with a message, clear and succinct, "Invalid Session" it says, with an error hint. 🚨🏡
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes Issue #99
Changes proposed
Changed return redirect("/auth/login"); and replace with it with return redirect("/?alert=error&message=Invalid Session");
Check List (Check all the applicable boxes)
Summary by CodeRabbit