---
title: '@svartz/auth'
description: >-
  Reader sign-in and accounts for Svartz sites, and the signed-in account for
  server plugins
updated_at: '2026-11-19T08:20:45+01:00'
---

# @svartz/auth

## Entry points

- [@svartz/auth/server](https://svartz.dev/reference/api/auth/server.md)
- [@svartz/auth/browser](https://svartz.dev/reference/api/auth/browser.md)
- [@svartz/auth/badge](https://svartz.dev/reference/api/auth/badge.md)

## Interfaces

- [Identity](https://svartz.dev/reference/api/auth/identity.md) — Who is signed in. Nothing else about the account is kept, and provider tokens never outlive the callback.

## Types

- [ProviderId](https://svartz.dev/reference/api/auth/providerid.md) — The sign-in providers `@svartz/auth` supports. Adding one extends `ProviderId`, adds its entry here and its mark in `marks.ts`.

## Functions

- [auth](https://svartz.dev/reference/api/auth/auth-function.md) — The `auth` plugin: sign-in routes on the server and the sign-in dialog in the browser.

## Variables

- [AUTH_PLUGIN_ID](https://svartz.dev/reference/api/auth/auth_plugin_id.md) — The plugin id, and so the path segment its routes answer under: `<mount>/_svartz/auth/`.

## Re-exports

- [Account](https://svartz.dev/reference/api/auth/server/account.md)
- [ProviderOptions](https://svartz.dev/reference/api/auth/server/provideroptions.md)
- [SignIn](https://svartz.dev/reference/api/auth/server/signin.md)
- [SignedOutReason](https://svartz.dev/reference/api/auth/server/signedoutreason.md)
- [SignInConfig](https://svartz.dev/reference/api/auth/browser/signinconfig.md)
- [AuthOptions](https://svartz.dev/reference/api/auth/server/authoptions.md)
