Skip to content

Commit 967fe05

Browse files
authored
PM-31474: Cherry pick disabling PRF on desktop (#18689)
1 parent 90b15c1 commit 967fe05

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

libs/key-management-ui/src/lock/services/default-webauthn-prf-unlock.service.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ export class DefaultWebAuthnPrfUnlockService implements WebAuthnPrfUnlockService
5454
return false;
5555
}
5656

57-
// If we're in the browser extension, check if we're in a Chromium browser
58-
if (
59-
this.platformUtilsService.getClientType() === ClientType.Browser &&
60-
!this.platformUtilsService.isChromium()
61-
) {
57+
// PRF unlock is only supported on Web and Chromium-based browser extensions
58+
const clientType = this.platformUtilsService.getClientType();
59+
if (clientType === ClientType.Browser && !this.platformUtilsService.isChromium()) {
60+
return false;
61+
}
62+
if (clientType !== ClientType.Web && clientType !== ClientType.Browser) {
6263
return false;
6364
}
6465

0 commit comments

Comments
 (0)