Trntannan / 2-School-Front

https://2-school-front.vercel.app
0 stars 0 forks source link

Redirect User on Successful Login #3

Closed Trntannan closed 1 month ago

Trntannan commented 1 month ago

What: Redirect the user to another page (e.g., dashboard or home) after a successful login.

Acceptance Criteria:

Upon successful login, the user should be redirected to 'groups' page. The redirect should only happen after receiving a successful response from the API.

Implementation Notes:

Use the useRouter hook from Next.js to redirect to 'groups' page after successful login. Redirect after the JWT token has been stored.