1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

Fix kdf prompt not working on browser (#17902)

This commit is contained in:
Bernd Schoolmann
2025-12-11 14:29:48 +01:00
committed by GitHub
parent 33d909b0bb
commit bcc2bda417

View File

@@ -38,7 +38,7 @@ export const ENCRYPTED_MIGRATION_DISMISSED = new UserKeyDefinition<Date>(
}, },
); );
const DISMISS_TIME_HOURS = 24; const DISMISS_TIME_HOURS = 24;
const VAULT_ROUTE = "/vault"; const VAULT_ROUTES = ["/vault", "/tabs/vault", "/tabs/current"];
/** /**
* This services schedules encrypted migrations for users on clients that are interactive (non-cli), and handles manual interaction, * This services schedules encrypted migrations for users on clients that are interactive (non-cli), and handles manual interaction,
@@ -85,7 +85,7 @@ export class DefaultEncryptedMigrationsSchedulerService implements EncryptedMigr
]).pipe( ]).pipe(
filter( filter(
([authStatus, _date, url]) => ([authStatus, _date, url]) =>
authStatus === AuthenticationStatus.Unlocked && url === VAULT_ROUTE, authStatus === AuthenticationStatus.Unlocked && VAULT_ROUTES.includes(url),
), ),
concatMap(() => this.runMigrationsIfNeeded(userId)), concatMap(() => this.runMigrationsIfNeeded(userId)),
), ),