gupta-ritik / ExpenseTracker

ExpenseTracker is a simple, intuitive web application designed to help you manage your finances effectively. With ExpenseTracker, you can easily record, categorize, and monitor your daily, weekly, and monthly expenses in one convenient place.
https://walletwatcx.netlify.app
MIT License
9 stars 49 forks source link

Improve the issue related with sign-in and sign-up #114

Open gupta-ritik opened 1 week ago

gupta-ritik commented 1 week ago
  1. when new user is registered to the expense tracker by using sign-up page the page is not redirected to the dashboard of the website .
  2. When old user or exiting user trying to sign-in and page is not redirected . image
AnsharaFayazBeigh commented 1 week ago

hey! @gupta-ritik , Hey! I noticed the issue where, after signing up or logging in, users aren't being redirected to the dashboard. I'll work on fixing that.

Sign-up/Sign-in: In the code for both sign-up and sign-in, I’ll add a redirect after a successful sign-up or login. I can do this by using router.push('/dashboard') from Next.js to navigate the user to the dashboard page.

Already Logged-in User: If a user is already logged in and tries to visit the sign-up or sign-in page, I’ll check for their authentication status. If they’re logged in, I’ll automatically redirect them to the dashboard page to prevent them from accessing the sign-in/sign-up pages again.

Could me please assign me this? ’d appreciate it if this issue isn’t assigned to anyone else. I'll keep you updated on my progress!

gupta-ritik commented 2 days ago

please complete asap