# `LLMProxy.Providers.OpenAICodex.OAuth.Login.TokenResponse`
[🔗](https://github.com/elixir-vibe/llm_proxy/blob/v0.3.1/lib/llm_proxy/providers/openai_codex/oauth/login.ex#L12)

OpenAI OAuth token endpoint response.

This struct is the JSON boundary for `auth.openai.com/oauth/token`.

# `t`

```elixir
@type t() :: %LLMProxy.Providers.OpenAICodex.OAuth.Login.TokenResponse{
  access_token: String.t(),
  expires_at: DateTime.t(),
  refresh_token: String.t()
}
```

# `decode`

Decodes a JSON string into this struct.

# `decode!`

Decodes a JSON string into this struct, raising on failure.

# `dump`

Dumps this struct into JSON-shaped data, respecting JSON field names.

# `expires_datetime`

# `from_map`

Builds this struct from a decoded JSON map.

# `from_map!`

Builds this struct from a decoded JSON map, raising on failure.

# `json_schema`

Returns a JSON Schema-compatible schema map.

# `schema`

Returns a JSON Schema-compatible schema map.

# `to_map`

Converts this struct into a JSON-shaped map.

---

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