type · Browser

# Lock

`@toip-tools/web-vault` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/web-vault/src/vault.ts#L23)

Import:

```ts
import { type Lock } from "@toip-tools/web-vault";
```

## Declaration

type:

```ts
type Lock =
  | { kind: "passkey"; credentialId: string; salt: string; seed: Sealed }
  | { kind: "passphrase"; salt: string; iterations: number; seed: Sealed };
```

[Usage guide](https://toip.tools/toolkit/web-vault/#usage) · [Error handling](https://toip.tools/toolkit/web-vault/#errors) · [All exports](https://toip.tools/toolkit/web-vault/api/)

---

This is the Markdown version of https://toip.tools/toolkit/web-vault/api/Lock/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
