Skip to content

Commit da56121

Browse files
longsizhuoclaude
andcommitted
docs: 修正 token 传递方式的注释(/?token → /#token fragment)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9d063e0 commit da56121

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/SignInButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface SignInButtonProps {
88

99
export function SignInButton({ className }: SignInButtonProps) {
1010
// 直接跳转到后端 GitHub OAuth 授权入口(NEXT_PUBLIC_BACKEND_URL)
11-
// 后端完成授权后带着 token 重定向回前端首页 /?token=xxx
11+
// 后端完成授权后带着 token 重定向回前端首页 /#token=xxx(fragment,不会出现在服务器日志中)
1212
const handleSignIn = () => {
1313
const backendUrl =
1414
process.env.NEXT_PUBLIC_BACKEND_URL ?? "http://localhost:8080";

0 commit comments

Comments
 (0)