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 摘要。