docs(api): explain proxy and OAuth validation boundaries

This commit is contained in:
2026-11-12 16:41:57 +08:00
parent 62b41b79dc
commit 923c82f366
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ export async function GET(
) {
const { provider } = await params;
const challenges = req.nextUrl.searchParams.getAll("challenge");
// 这里只验证 challenge 字符表示,不验证 verifier/登录 state 或交换身份;额外查询参数也不会透传上游。
const challenge = challenges[0];
if (
!["google", "slack"].includes(provider) ||