-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM-5263 - TokenService needs to actually use secure storage (#8356)
- Loading branch information
1 parent
4fabc94
commit ca86288
Showing
3 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
apps/desktop/src/platform/services/illegal-secure-storage-service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { AbstractStorageService } from "@bitwarden/common/platform/abstractions/storage.service"; | ||
import { StorageOptions } from "@bitwarden/common/platform/models/domain/storage-options"; | ||
|
||
export class IllegalSecureStorageService implements AbstractStorageService { | ||
constructor() {} | ||
|
||
get valuesRequireDeserialization(): boolean { | ||
throw new Error("Method not implemented."); | ||
} | ||
has(key: string, options?: StorageOptions): Promise<boolean> { | ||
throw new Error("Method not implemented."); | ||
} | ||
save<T>(key: string, obj: T, options?: StorageOptions): Promise<void> { | ||
throw new Error("Method not implemented."); | ||
} | ||
async get<T>(key: string): Promise<T> { | ||
throw new Error("Method not implemented."); | ||
} | ||
async set<T>(key: string, obj: T): Promise<void> { | ||
throw new Error("Method not implemented."); | ||
} | ||
async remove(key: string): Promise<void> { | ||
throw new Error("Method not implemented."); | ||
} | ||
async clear(): Promise<void> { | ||
throw new Error("Method not implemented."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters