@plainauth/shared
v0.1.2
Published
Shared vocabulary (routes, credentials, redaction, session assertions) for the plainauth SDKs.
Readme
@plainauth/shared
Shared runtime contracts for the Plainauth SDK family. This package contains the validated
schemas, route vocabulary, credential types, cookie naming rules, and error shapes used by the
browser, server, and UI packages. Most applications install it transitively through
@plainauth/core or @plainauth/nextjs.
Installation
pnpm add @plainauth/sharedUse this package directly when you need Plainauth's public TypeScript types or validation schemas without a framework integration. It is an ES module package and includes its declarations in the published tarball. Runtime inputs are validated with Zod, so callers should handle validation failures at their own service boundary.
The package does not contain a secret key, provision infrastructure, or make network requests on
import. For a complete Next.js setup, start with @plainauth/nextjs; for framework-independent
API access, use @plainauth/core.
Project source and issue reporting are available at github.com/uripg/plainauth.