From 2702ac64fe82072b5e9225628d9ae51a3b953d92 Mon Sep 17 00:00:00 2001 From: Jin Yi Date: Tue, 23 Sep 2025 12:08:30 +0900 Subject: [PATCH] [bugfix] Fix cloud invite code route authentication issue (#5730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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) --- src/onboardingCloudRoutes.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/onboardingCloudRoutes.ts b/src/onboardingCloudRoutes.ts index 77ed5428b8..cc427e4f2c 100644 --- a/src/onboardingCloudRoutes.ts +++ b/src/onboardingCloudRoutes.ts @@ -6,6 +6,12 @@ export const cloudOnboardingRoutes: RouteRecordRaw[] = [ component: () => import('@/platform/onboarding/cloud/components/CloudLayoutView.vue'), children: [ + { + path: 'code/:code', + name: 'cloud-invite-code', + component: () => + import('@/platform/onboarding/cloud/CloudInviteEntryView.vue') + }, { path: 'login', name: 'cloud-login', @@ -45,13 +51,6 @@ export const cloudOnboardingRoutes: RouteRecordRaw[] = [ import('@/platform/onboarding/cloud/UserCheckView.vue'), meta: { requiresAuth: true } }, - { - path: 'code/:code', - name: 'cloud-invite-code', - component: () => - import('@/platform/onboarding/cloud/CloudInviteEntryView.vue'), - meta: { requiresAuth: true } - }, { path: 'invite-check', name: 'cloud-invite-check',