Skip to content

dauthAuthentication as a Service

Multi-tenant passwordless authentication with magic links and passkeys. Zero passwords, maximum security.

Quick Integration

Add passwordless auth to your app in 3 steps:

bash
pnpm add dauth-context-react
tsx
import { DauthProvider } from 'dauth-context-react';

function App() {
  return (
    <DauthProvider domainName="your-app">
      <YourApp />
    </DauthProvider>
  );
}
tsx
import { useDauth } from 'dauth-context-react';

function Profile() {
  const { user, isAuthenticated, loginWithRedirect } = useDauth();

  if (!isAuthenticated) {
    return <button onClick={loginWithRedirect}>Sign In</button>;
  }

  return <p>Hello, {user.name}!</p>;
}

Built with VitePress