Remove special authentication for state service

This commit is contained in:
Matt Gibson 2024-04-25 15:57:25 -04:00
parent 92412ee761
commit ecb00787da
No known key found for this signature in database
GPG Key ID: 963EE038B0581878
1 changed files with 0 additions and 9 deletions

View File

@ -62,15 +62,6 @@ export class DefaultBrowserStateService
await super.addAccount(account);
}
async getIsAuthenticated(options?: StorageOptions): Promise<boolean> {
// Firefox Private Mode can clash with non-Private Mode because they both read from the same onDiskOptions
// Check that there is an account in memory before considering the user authenticated
return (
(await super.getIsAuthenticated(options)) &&
(await this.getAccount(await this.defaultInMemoryOptions())) != null
);
}
// Overriding the base class to prevent deleting the cache on save. We register a storage listener
// to delete the cache in the constructor above.
protected override async saveAccountToDisk(