remove device code ip check and fix edit resource dialog state issue

This commit is contained in:
miloschwartz
2025-12-05 11:47:59 -05:00
parent 1cae815be5
commit 8726a7f931
3 changed files with 27 additions and 16 deletions

View File

@@ -125,16 +125,6 @@ export async function pollDeviceWebAuth(
});
}
// Check if IP matches
if (!requestIp || !deviceCode.ip || requestIp !== deviceCode.ip) {
return next(
createHttpError(
HttpCode.FORBIDDEN,
"IP address does not match"
)
);
}
// Check if userId is set (should be set when verified)
if (!deviceCode.userId) {
logger.error("Device code is verified but userId is missing", { codeId: deviceCode.codeId });