---
title: AuthOptions
description: The `auth` plugin's options.
updated_at: '2026-11-25T17:56:14+01:00'
created_at: '2026-11-11T11:02:45+01:00'
symbol:
  kind: interface
  name: AuthOptions
  signatures:
    - interface AuthOptions
  members:
    - name: providers
      kind: property
      signature: 'readonly providers: { … }'
      description: >-
        The providers readers may sign in with, in the order the sign-in dialog
        lists them. Others answer 404.
    - name: providers.google
      kind: property
      signature: 'google?: [[reference/api/auth/server/ProviderOptions|ProviderOptions]]'
    - name: providers.github
      kind: property
      signature: 'github?: [[reference/api/auth/server/ProviderOptions|ProviderOptions]]'
    - name: providers.discord
      kind: property
      signature: 'discord?: [[reference/api/auth/server/ProviderOptions|ProviderOptions]]'
    - name: providers.x
      kind: property
      signature: 'x?: [[reference/api/auth/server/ProviderOptions|ProviderOptions]]'
    - name: privacyNotice
      kind: property
      signature: 'readonly privacyNotice?: string'
      description: URL of the site's privacy notice; the sign-in dialog links to it.
    - name: callbackVault
      kind: property
      signature: 'readonly callbackVault?: string'
      description: >-
        The id of the host vault whose routes run every sign-in in this app, so
        each provider needs one callback URL.   It must list every provider this
        vault does.
      default: the first host vault that enables auth
    - name: admins
      kind: property
      signature: 'readonly admins?: readonly string[]'
      description: >-
        Identity ids, such as `"github:583231"`, whose accounts always hold the
        `admin` role. The role comes from this list, not from the database, so
        nothing stored there can take it away.
    - name: userPages
      kind: property
      signature: 'readonly userPages?: string'
      description: >-
        The folder of user pages, as page slugs spell it. `<folder>/<handle>` in
        the vault that runs sign-in is the page of the account with that handle,
        which it may always edit.   Host vaults share accounts, so they must set
        the same one.
      default: '`"users"`'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/server.ts#L169
---

# AuthOptions
