1
0
forked from baron/baron-sso

누락 키 및 린트 적용

This commit is contained in:
2026-05-14 10:56:23 +09:00
parent da10b4be15
commit 79f5ace7ef
7 changed files with 38 additions and 23 deletions

View File

@@ -76,9 +76,13 @@ export function canStartBrowserPkceLogin({
origin = window.location.origin,
cryptoSubtleAvailable = Boolean(window.crypto?.subtle),
}: BrowserPkceLoginCheck = {}) {
if (!cryptoSubtleAvailable) {
return false;
}
if (isSecureContext) {
return true;
}
return isDevTrustedPkceOrigin(origin) && cryptoSubtleAvailable;
return isDevTrustedPkceOrigin(origin);
}