docs(api): explain proxy and OAuth validation boundaries
This commit is contained in:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user