---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/extension/type-aliases/ExtensionAuthMode.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/extension](../index.md) / ExtensionAuthMode

# ExtensionAuthMode

> **ExtensionAuthMode** = `"none"` | `"optional"` | `"required"`

How the request uses the client's session: `'none'` never sends a token; `'optional'` sends one if there is one
(and, if the gateway answers 401 and the session cannot be renewed, retries without a token); `'required'`
rejects with `UNAUTHENTICATED` without a session. With a token, a 401 triggers session renewal and a
single retry, exactly as in the core methods.
