AOSSIE-Org / AOSSIE-Org/InPactAI

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

Đang mở
#89 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
102
Fork
144
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.