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.
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.