Skip to content

CreateSecretStorageOpts

Defined in: src/crypto-api/index.ts:1209

Parameter of CryptoApi#bootstrapSecretStorage

optional createSecretStorageKey?: () => Promise<GeneratedSecretStorageKey>

Defined in: src/crypto-api/index.ts:1216

Function called to await a secret storage key creation flow.

Promise<GeneratedSecretStorageKey>

Promise resolving to an object with public key metadata, encoded private recovery key which should be disposed of after displaying to the user, and raw private key to avoid round tripping if needed.


optional setupNewKeyBackup?: boolean

Defined in: src/crypto-api/index.ts:1223

If true, a new key backup version will be created and the private key stored in the new SSSS store. Ignored if keyBackupInfo is supplied.


optional setupNewSecretStorage?: boolean

Defined in: src/crypto-api/index.ts:1228

Reset even if keys already exist.