diff --git a/frontend/bun.lock b/frontend/bun.lock index 51fe9df9..dbea052d 100644 --- a/frontend/bun.lock +++ b/frontend/bun.lock @@ -34,7 +34,7 @@ "zod": "^4.3.6", }, "devDependencies": { - "@eslint/js": "^9.39.2", + "@eslint/js": "^10.0.1", "@tanstack/eslint-plugin-query": "^5.91.4", "@types/node": "^25.2.0", "@types/react": "^19.2.11", @@ -155,7 +155,7 @@ "@eslint/core": ["@eslint/core@1.1.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-/nr9K9wkr3P1EzFTdFdMoLuo1PmIxjmwvPozwoSodjNBdefGujXQUF93u1DDZpEaTuDvMsIQddsd35BwtrW9Xw=="], - "@eslint/js": ["@eslint/js@9.39.2", "", {}, "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA=="], + "@eslint/js": ["@eslint/js@10.0.1", "", { "peerDependencies": { "eslint": "^10.0.0" }, "optionalPeers": ["eslint"] }, "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA=="], "@eslint/object-schema": ["@eslint/object-schema@3.0.1", "", {}, "sha512-P9cq2dpr+LU8j3qbLygLcSZrl2/ds/pUpfnHNNuk5HW7mnngHs+6WSq5C9mO3rqRX8A1poxqLTC9cu0KOyJlBg=="], diff --git a/frontend/package.json b/frontend/package.json index 1ec6abbd..7c4fe768 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -40,7 +40,7 @@ "zod": "^4.3.6" }, "devDependencies": { - "@eslint/js": "^9.39.2", + "@eslint/js": "^10.0.1", "@tanstack/eslint-plugin-query": "^5.91.4", "@types/node": "^25.2.0", "@types/react": "^19.2.11", diff --git a/frontend/src/lib/hooks/redirect-uri.ts b/frontend/src/lib/hooks/redirect-uri.ts index bfd5d281..5211178a 100644 --- a/frontend/src/lib/hooks/redirect-uri.ts +++ b/frontend/src/lib/hooks/redirect-uri.ts @@ -17,10 +17,10 @@ export const useRedirectUri = ( if (!redirect_uri) { return { - valid: false, - trusted: false, - allowedProto: false, - httpsDowngrade: false, + valid: isValid, + trusted: isTrusted, + allowedProto: isAllowedProto, + httpsDowngrade: isHttpsDowngrade, }; } @@ -30,10 +30,10 @@ export const useRedirectUri = ( url = new URL(redirect_uri); } catch { return { - valid: false, - trusted: false, - allowedProto: false, - httpsDowngrade: false, + valid: isValid, + trusted: isTrusted, + allowedProto: isAllowedProto, + httpsDowngrade: isHttpsDowngrade, }; }