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
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 + redirectReproduces how often
From static analysis