From 4d06f4b92cde81867dbdc75bd2fabd5a60d92c46 Mon Sep 17 00:00:00 2001 From: twosugar Date: Wed, 16 Sep 2026 16:00:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E7=99=BB=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A=E6=8E=89=20with-u?= =?UTF-8?q?s=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同步更新 createLoginRedirectPath 的 JSDoc 示例链接。 Co-Authored-By: Claude Opus 5 --- src/lib/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 30ba297f..5423b6de 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -46,7 +46,7 @@ function localePath(locale: Locale, path: string): string { /** * Build the login redirect URL — 1:1 with legacy `createLoginRedirectPath`. - * `/login?redirect_to=/sso?redirect_to=&logout=1&with-us=1[&invite-code=…]` + * `/login?redirect_to=/sso?redirect_to=&logout=1[&invite-code=…]` * so that after login the SSO round-trip lands the user back on the current page. */ export function createLoginRedirectPath( @@ -61,7 +61,7 @@ export function createLoginRedirectPath( return withQuery(localePath(locale, '/login'), { redirect_to, logout: '1', - 'with-us': '1', + // 'with-us': '1', ...(inviteCode ? { [INVITE_CODE_KEY]: inviteCode } : {}), }) }