Authdog

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.

1npm install @authdog/react-elements
import { 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.

01

Install

Add @authdog/web-sdk and import the entrypoint for your framework.

02

Wrap

Mount the provider once, then read session and user state from a hook.

03

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.