# `Lockspire.Config`

Runtime configuration helpers for the embedded Lockspire library.

# `account_resolver!`

```elixir
@spec account_resolver!() :: module()
```

Returns the configured account resolver module, or raises if missing.

# `backchannel_notification`

```elixir
@spec backchannel_notification() :: module() | nil
```

Returns the configured backchannel notification module, or nil if not set.

# `device_verification_uri`

```elixir
@spec device_verification_uri() :: String.t()
```

Returns the computed device verification URI.

# `issuer!`

```elixir
@spec issuer!() :: String.t()
```

Returns the validated configured issuer string, or raises if invalid/missing.

# `jar_max_age_seconds`

```elixir
@spec jar_max_age_seconds() :: pos_integer()
```

Returns the configured JAR (`request` JWT) maximum age in seconds.

Caps `exp - now` for inbound JAR request objects to bound the replay window
between issuance and use. Default: 600s (10 minutes).

Hosts can override via `config :lockspire, jar_max_age_seconds: 300`.
Lower values reduce replay risk but may break clients with clock drift.

`Lockspire.Protocol.RequestObject.consume/3` threads this value into
`Lockspire.Protocol.Jar.validate_claims/2` so the ceiling is enforced at the
protocol seam.

# `jwks_fetcher`

```elixir
@spec jwks_fetcher() :: module()
```

Returns the JWKS fetcher module.

# `jwks_fetcher_opts`

```elixir
@spec jwks_fetcher_opts() :: keyword()
```

Returns optional JWKS fetcher overrides.

This is primarily used by repo-owned tests that need to drive the guarded
`jwks_uri` fetch path through `Req.Test` without changing the shipped runtime
defaults.

# `known_scopes`

```elixir
@spec known_scopes() :: [String.t()]
```

Returns the list of known scopes.

# `logout_path`

```elixir
@spec logout_path() :: String.t()
```

Returns the configured logout path.

# `mount_path`

```elixir
@spec mount_path() :: String.t()
```

Returns the configured Lockspire mount path.

Accepts any binary, including the empty string (`""`), which is a deliberate
signal that Lockspire is mounted at the host's root. Only `nil` (config
unset) is rejected — host apps must set this explicitly to declare intent.

# `mtls_issuer`

```elixir
@spec mtls_issuer() :: String.t() | nil
```

Returns the MTLS issuer string if configured, or nil.

# `oban_config`

```elixir
@spec oban_config() :: keyword()
```

Returns the Oban configuration keyword list.

# `oban_prefix`

```elixir
@spec oban_prefix() :: String.t() | nil
```

Returns the configured Postgres schema/prefix for Lockspire's Oban tables.

# `pruner_schedule`

```elixir
@spec pruner_schedule() :: String.t() | false
```

Returns the schedule string for the pruner, or false if disabled.

# `rar_types_supported`

```elixir
@spec rar_types_supported() :: [String.t()]
```

Returns the configured RAR authorization detail types.

# `rar_validators`

```elixir
@spec rar_validators() :: map()
```

Returns the configured RAR type validators.

# `repo!`

```elixir
@spec repo!() :: module()
```

Returns the configured Ecto repo module, or raises if missing.

# `secret_key_base`

```elixir
@spec secret_key_base() :: String.t() | nil
```

Returns the configured Lockspire endpoint secret key base, or nil if unset.

# `security_profile`

```elixir
@spec security_profile() :: :none | :fapi_2_0_security
```

Returns the security profile configuration.

# `storage_prefix`

```elixir
@spec storage_prefix() :: String.t() | nil
```

Returns the configured Postgres schema/prefix for Lockspire-owned tables.

Missing config intentionally means "legacy/default search path" so existing
public-schema installs do not silently point at an empty `lockspire` schema
after upgrading. Generated new installs set `"lockspire"` explicitly.

# `token_exchange_validator`

```elixir
@spec token_exchange_validator() :: module()
```

Returns the configured token exchange validator module, or defaults to a delegation validator.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
