@sharekit/better-auth
v0.2.3
Published
Better Auth adapter for the Shareable SDK
Downloads
425
Readme
@sharekit/better-auth
Better Auth adapter for the Shareable SDK.
Installation
pnpm add @sharekit/better-auth @sharekit/core better-authUsage
import { betterAuthProvider } from "@sharekit/better-auth";
import { auth } from "./auth";
const shareable = createShareable({
auth: betterAuthProvider(auth),
// ...
});The adapter calls auth.api.getSession() to resolve the current user from the request headers. It returns { id, name } for the shareable system to use for ownership verification and owner name display.
