@clowk/sdk
@clowk/sdk re-exports everything from @clowk/core under one clean import path, for JavaScript apps that want a single dependency for Clowk authentication.
Install
npm install @clowk/sdkOverview
Re-exports everything from @clowk/core under a clean import path. Use this if you want a single dependency instead of importing from @clowk/core directly.
import { configure, verifyToken } from '@clowk/sdk'
configure({
publishableKey: 'pk_live_...',
secretKey: 'sk_live_...',
})
const user = await verifyToken(token)@clowk/core
@clowk/core is the runtime-agnostic base for every Clowk JavaScript SDK: config, errors, a fetch HTTP client, API client and JWT verification.
@clowk/react
@clowk/react gives React apps Clowk authentication: ClowkProvider, the useUser, useSession and useAuth hooks, and ready sign-in and sign-out buttons.