Web SDK
One SDK. The framework you already use.
UI, hooks, sessions for the web stack you have. Same session on the API.
- Same primitives
- React, Vue, Svelte, Angular — same session shape.
- Typed components and hooks
- Accessible UI and hooks. Types ship in the package.
- Client plus server
- Components on the client. Middleware on the server. Same session.
- npm install @authdog/web-sdk
- One package. Framework entrypoints. No rewrite per provider.
Quick start
Wrap your app, then read the session from a hook
Install the package for your stack, then use the same shape across every framework below.
npm install @authdog/react-elementsimport { AuthdogProvider, useAuth } from "@authdog/react-elements";
function App() {
return (
<AuthdogProvider>
<Dashboard />
</AuthdogProvider>
);
}
function Dashboard() {
const { user, signOut } = useAuth();
return (
<button onClick={signOut}>
Sign out {user?.email}
</button>
);
}Frontend frameworks
UI and hooks for your framework
Components, hooks, route guards. Pick the framework, read that page.
Backend frameworks
Verify the same session on your API
Middleware, plugins, and extractors that resolve and enforce sessions on the server.
Free trial
Request a free trial
Tell us what you're building and we'll get you set up with a trial, plus someone who can answer questions as you evaluate.
- Full access to the platform while you evaluate it
- Help wiring it into your stack from someone who knows it
- Answers on SSO, SCIM, residency, and compliance requirements
Install
Add @authdog/web-sdk and import the entrypoint for your framework.
Wrap
Mount the provider once, then read session and user state from a hook.
Enforce
Guard routes on the client and verify the same session on your API.
Install the SDK for your stack
API key from the console. Entrypoint for the framework. Session on the next request.