Authdog
Se connecter

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.

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

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

We'll only use this to contact you about Authdog.

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.

Install the SDK for your stack

API key from the console. Entrypoint for the framework. Session on the next request.

Get your API key