@spacehq/sdk > Users > backupKeysByPassphrase
Users.backupKeysByPassphrase() method
Backup the existing users identity key information using the passphrase provided.
Identity can be gotten from SpaceUser gotten after a successful authentication or recovery.
Signature:
backupKeysByPassphrase(uuid: string, passphrase: string, backupType: VaultBackupType, identity: Identity): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| uuid | string | users unique vault id |
| passphrase | string | users passphrase used to recover keys |
| backupType | VaultBackupType | Type of vault backup the passphrase originates from |
| identity | Identity | Identity containing private key of user to backup |
Returns:
Promise<void>