Skip to content

Commit

Permalink
Fix type warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Jan 13, 2025
1 parent 1a6d519 commit e141a1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class BackgroundBrowserBiometricsService extends BiometricsService {
}
}

async unlockWithBiometricsForUser(userId: UserId): Promise<UserKey | null> {
async unlockWithBiometricsForUser(userId: UserId): Promise<UserKey | null | undefined> {
try {
await this.ensureConnected();

Expand All @@ -92,7 +92,7 @@ export class BackgroundBrowserBiometricsService extends BiometricsService {
if (response.response == "unlocked") {
const decodedUserkey = Utils.fromB64ToArray(response.userKeyB64);
const userKey = new SymmetricCryptoKey(decodedUserkey) as UserKey;
if (this.keyService.validateUserKey(userKey, userId)) {
if (await this.keyService.validateUserKey(userKey, userId)) {
await this.biometricStateService.setBiometricUnlockEnabled(true);
await this.biometricStateService.setFingerprintValidated(true);
this.keyService.setUserKey(userKey, userId);
Expand All @@ -109,7 +109,7 @@ export class BackgroundBrowserBiometricsService extends BiometricsService {
if (response.response) {
const decodedUserkey = Utils.fromB64ToArray(response.userKeyB64);
const userKey = new SymmetricCryptoKey(decodedUserkey) as UserKey;
if (this.keyService.validateUserKey(userKey, userId)) {
if (await this.keyService.validateUserKey(userKey, userId)) {
await this.biometricStateService.setBiometricUnlockEnabled(true);
await this.biometricStateService.setFingerprintValidated(true);
this.keyService.setUserKey(userKey, userId);
Expand Down

0 comments on commit e141a1a

Please sign in to comment.