EvanZhouDev / zyma

Zyma is a simple attendance tracker, enabling easy check-in for anyone from clubs to corporation meetings.
https://zyma.vercel.app
1 stars 0 forks source link

If the sign in/up had an error, redirect won't happen #40

Closed ThatXliner closed 10 months ago

ThatXliner commented 10 months ago

Prerequisites

Bug description

Let's say you visit one of the authentication-required routes (e.g. /teacher/dashboard or /join). If you're not signed in, you will be redirected to the sign in page which will normally redirect you back on success.

Reproduction steps

Except it doesn't redirect you back if you didn't sign in successfully.

Other information

This is from pure static analysis of the code.

All that's required to fix it is probably to change this file and update the page.tsx to account for the case of error + redirect

Reproduces how often

From static analysis