AOSSIE-Org / AOSSIE-Org/InPactAI

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

未關閉
#89 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
102
分支
144
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。