Web SDK
One identity SDK for every web framework
Drop-in auth UI, hooks, and session management for the stack you already ship with, paired with server middleware that verifies the same session on your API.
- One SDK, every framework
- The same primitives across React, Vue, Svelte, Angular, and more.
- Drop-in and typed
- Accessible prebuilt components and hooks with full TypeScript types.
- Frontend to backend
- Client components pair with server middleware, so sessions verify end to end.
- npm install @authdog/web-sdk
- One package, framework entrypoints, no provider-specific rewrite.
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 } from "@authdog/nextjs-app";
export default function RootLayout({ children }) {
return (
<AuthdogProvider>
<html lang="en">
<body>{children}</body>
</html>
</AuthdogProvider>
);
}
// Anywhere in the tree
import { useUser } from "@authdog/nextjs-app";
function Profile() {
const { user } = useUser();
return <span>{user?.email}</span>;
}Frontend frameworks
Prebuilt UI and hooks for your framework
Components, hooks, and route guards tailored to each framework. Pick yours and start integrating.
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.
Ship auth in your framework today
Grab your API key from the console, install the SDK for your stack, and add identity in your next commit.