No authentication
Configure a stable identity for a private single-user process without installing an authentication provider.
Use this mode only when access to the process is already private: a local CLI, desktop companion, single-user daemon, test process, or an internal worker with no public request boundary.
import { createVaultServer, singleUserResolver } from "@ownfold/server"
export const vaultServer = createVaultServer({
adapter,
getUserId: singleUserResolver("local-owner"),
})
The ID must be stable for the lifetime of the stored vault. Changing it makes the existing vault belong to a different logical owner.
If more than one user or trust boundary can reach the service, use Better Auth, Auth.js, or a custom verified resolver.