forked from baron/baron-sso
누락 키 및 린트 적용
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user