Skip to content

Commit 2702ac6

Browse files
authored
[bugfix] Fix cloud invite code route authentication issue (#5730)
## Summary - Remove `requiresAuth: true` from cloud-invite-code route to fix redirect issues in production ## Problem The `/cloud/code/:code` route had conflicting configurations: - Route was marked as `requiresAuth: true` in route definition - But was treated as a public route in the router guard logic - This caused authentication redirect issues when unauthenticated users tried to access invite links ## Solution Removed the `requiresAuth: true` meta property from the cloud-invite-code route, allowing it to properly function as a public route that redirects to login with the invite code. ## Test plan - [x] Access `/cloud/code/TESTCODE` while logged out - should redirect to login with `inviteCode` query param - [x] Verify no authentication errors in console - [x] Confirm invite code is preserved through the redirect flow Fixes authentication redirect issue for cloud invite links 🤖 Generated with [Claude Code](https://claude.ai/code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5730-bugfix-Fix-cloud-invite-code-route-authentication-issue-2776d73d36508149b512d7f735b1a231) by [Unito](https://www.unito.io)
1 parent 8ca541e commit 2702ac6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/onboardingCloudRoutes.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export const cloudOnboardingRoutes: RouteRecordRaw[] = [
66
component: () =>
77
import('@/platform/onboarding/cloud/components/CloudLayoutView.vue'),
88
children: [
9+
{
10+
path: 'code/:code',
11+
name: 'cloud-invite-code',
12+
component: () =>
13+
import('@/platform/onboarding/cloud/CloudInviteEntryView.vue')
14+
},
915
{
1016
path: 'login',
1117
name: 'cloud-login',
@@ -45,13 +51,6 @@ export const cloudOnboardingRoutes: RouteRecordRaw[] = [
4551
import('@/platform/onboarding/cloud/UserCheckView.vue'),
4652
meta: { requiresAuth: true }
4753
},
48-
{
49-
path: 'code/:code',
50-
name: 'cloud-invite-code',
51-
component: () =>
52-
import('@/platform/onboarding/cloud/CloudInviteEntryView.vue'),
53-
meta: { requiresAuth: true }
54-
},
5554
{
5655
path: 'invite-check',
5756
name: 'cloud-invite-check',

0 commit comments

Comments
 (0)