@spacehq/sdk > Users > recoverKeysByPassphrase
Users.recoverKeysByPassphrase() method
Recovers users identity key information using the passphrase provided.
If successfully recovered, the users information is stored in the IdentityStorage
(if provided) when initializing the users class.
Signature:
recoverKeysByPassphrase(uuid: string, passphrase: string, backupType: VaultBackupType): Promise<SpaceUser>;
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 |
Returns:
Promise<SpaceUser>