()
| 440 | } |
| 441 | |
| 442 | async getMasterKey(): Promise<SerializedKey | undefined> { |
| 443 | const user = await this.getUser(); |
| 444 | if (!user) return; |
| 445 | const key = await this.db.storage().getCryptoKey(); |
| 446 | if (!key) return; |
| 447 | return { key, salt: user.salt }; |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * @deprecated |
no test coverage detected