fix: simplify login identifier construction in two-factor recovery and token handling

This commit is contained in:
shuaiplus
2026-05-23 02:22:04 +08:00
parent d468745841
commit 18eefd1174
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ export async function handleToken(request: Request, env: Env): Promise<Response>
const scope = body.scope;
const deviceInfo = readAuthRequestDeviceInfo(body, request);
const loginIdentifier = `${clientIdentifier}:${clientId}`;
const loginIdentifier = clientIdentifier;
const parmValid = checkClientCredentialsParam(clientId, clientSecret, scope);
if (!parmValid) {
return identityErrorResponse('Parameter error', 'invalid_request', 400);