EddieHubCommunity / RepoRater

Rate GitHub Repos for Developer Experience (DX)
https://repo-rater.eddiehub.org
MIT License
149 stars 37 forks source link

[BUG] redirect in the catch should have an alert message #100

Closed mukulpadwal closed 8 months ago

mukulpadwal commented 8 months ago

Has this bug been raised before?

Where did you find this bug?

local

Description

the redirect in the catch statement should have an error message so that the user knows the reason for the redirection.

Steps to Reproduce

n/a

Screenshots

No response

Do you want to work on this issue?

Yes

If "yes" to above, please explain how you would technically implement this

  } catch (e) {
-    return redirect("/");
+    return redirect("/?alert=error&message=Invalid Session");
  }