---
title: auth
description: >-
  The `auth` plugin: sign-in routes on the server and the sign-in dialog in the
  browser.
updated_at: '2026-11-19T08:20:45+01:00'
created_at: '2026-11-11T11:02:45+01:00'
symbol:
  kind: function
  name: auth
  signatures:
    - >-
      auth(options: [[reference/api/auth/server/AuthOptions|AuthOptions]]):
      [[reference/api/core/NormalizedSvartzPlugin|NormalizedSvartzPlugin]]
  parameters:
    - name: options
      type: '[[reference/api/auth/server/AuthOptions|AuthOptions]]'
  returns:
    type: '[[reference/api/core/NormalizedSvartzPlugin|NormalizedSvartzPlugin]]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/index.ts#L246
---

# auth
