@plainauth/core
v0.1.2
Published
The framework-agnostic Plainauth TypeScript SDK.
Readme
@plainauth/core
The framework-independent TypeScript client for Plainauth. It provides browser-safe authentication operations together with server-only helpers, while keeping configuration and response validation consistent across integrations.
Installation
pnpm add @plainauth/coreUse @plainauth/core when your application is not using the Next.js adapter or when you are
building another framework integration. Browser code should import from the package root. Server
code may use the documented @plainauth/core/server entry point for operations that require
server-side configuration.
Secret credentials belong only in server environments. Do not expose them through public build variables, browser bundles, or client components. The client validates service responses and returns stable public error envelopes instead of forwarding provider messages.
For Next.js App Router projects, @plainauth/nextjs provides the proxy, route handler, and session
helpers on top of this package. The UI package supplies optional React components.
Project source and issue reporting are available at github.com/uripg/plainauth.
