AOSSIE-Org / AOSSIE-Org/InPactAI

BUG:New Google Users Sent Directly to Dashboard Instead of Onboarding

Aperta
#89 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
102
Fork
144
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

---

## 📌 Issue Overview
After signing up or logging in with Google, new users are not redirected to the onboarding process as expected. Instead, they are taken directly to the dashboard/home page, even if they have not completed onboarding.

---

## 🔍 Steps to Reproduce
1. Go to the Signup or Login page.
2. Click on “Continue with Google” and complete the Google authentication flow.
3. Observe the page you are redirected to after authentication.
4. See the error: user is taken to the dashboard/home page instead of onboarding.

---

## 🎯 Expected Behavior
New users who sign up or log in with Google and have not completed onboarding should be redirected to the onboarding page before accessing the dashboard or other protected routes.

---

## 🚨 Actual Behavior
New users signing up or logging in with Google are taken directly to the dashboard/home page, bypassing the onboarding process.

---

## 💡 Suggested Improvements
- Ensure that after Google authentication, the app checks if the user has completed onboarding.
- If onboarding is incomplete, redirect the user to the onboarding page before allowing access to the dashboard.
- Add debug logging and/or review the onboarding check logic and route protection to ensure correct behavior.

---

### Record

- [x] I agree to follow this project's Code of Conduct
- [ ] I want to work on this issue

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.