@schemavaults/auth-server-sdk
v0.22.80
Published
TypeScript SDK for building authenticated endpoints/middlewares for the Auth Server and Resource Servers
Readme
@schemavaults/auth-server-sdk
TypeScript SDK for SchemaVaults Auth Server and Resource Server API backends.
CLI
bunx @schemavaults/auth-server-sdk codegen [options]Generates the auth pages (login, register, logout, authorize, error)
and the auth-provider.tsx into your Next.js App Router project.
Options
--client-output-dir <path>— Custom output directory for the generated clientauth/files. Defaults to<app>/auth(e.g.src/app/authorapp/auth). When set, the path is treated as the auth directory itself, so you can place the generated files inside a Next.js route group:bunx @schemavaults/auth-server-sdk codegen --client-output-dir src/app/\(client\)/authRelative paths are resolved against the current working directory.
--templates-dir <path>— Use a custom codegen templates directory instead of the templates bundled with the SDK.--debug— Enable debug logging.--help,-h— Show help.--version,-v— Show package name and version.
