@oneie/plugin-auth
v0.1.0
Published
better-auth client plugin — auth points at ONE's backend, server never ships
Readme
@oneie/plugin-auth
better-auth client plugin for ONE. Auth lives on ONE's backend — this plugin wires the client-side pieces.
import { auth } from '@oneie/plugin-auth'
export default defineOne({
plugins: [auth()],
})Adds sign-in/sign-up UI components, session management, and the better-auth client configured to point at the ONE backend. The auth server never ships to your repo.
What ships
auth()— plugin factory<SignIn />,<SignUp />Astro componentsuseSession()React hook (via better-auth)
