mirror of
https://github.com/bitwarden/clients.git
synced 2026-01-31 14:23:38 +08:00
PM-31474: Cherry pick disabling PRF on desktop (#18689)
This commit is contained in:
@@ -54,11 +54,12 @@ export class DefaultWebAuthnPrfUnlockService implements WebAuthnPrfUnlockService
|
||||
return false;
|
||||
}
|
||||
|
||||
// If we're in the browser extension, check if we're in a Chromium browser
|
||||
if (
|
||||
this.platformUtilsService.getClientType() === ClientType.Browser &&
|
||||
!this.platformUtilsService.isChromium()
|
||||
) {
|
||||
// PRF unlock is only supported on Web and Chromium-based browser extensions
|
||||
const clientType = this.platformUtilsService.getClientType();
|
||||
if (clientType === ClientType.Browser && !this.platformUtilsService.isChromium()) {
|
||||
return false;
|
||||
}
|
||||
if (clientType !== ClientType.Web && clientType !== ClientType.Browser) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user