[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/LocalAuth](https://evolu.dev/docs/api-reference/common/local-first/LocalAuth) › createLocalAuth

```ts
function createLocalAuth(deps: SecureStorageDep & RandomBytesDep): LocalAuth;
```

Defined in: [packages/common/src/local-first/LocalAuth.ts:80](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/local-first/LocalAuth.ts#L80)

Creates a local auth using the given secure storage implementation. This
factory function allows each platform to provide its own storage layer while
sharing the common auth logic.