# `Backplane.Oauth.TokenResponse`
[🔗](https://github.com/gsmlg-opt/backplane/blob/v1.10.77/apps/backplane_oauth/lib/backplane/oauth/responses/token.ex#L1)

Response returned in case of access token request success. Provides utilities and mandatory data needed to respond to the token part of client credentials, resource owner password, code and hybrid flows.

# `t`

```elixir
@type t() :: %Backplane.Oauth.TokenResponse{
  access_token: String.t() | nil,
  expires_in: integer() | nil,
  id_token: String.t() | nil,
  refresh_token: String.t() | nil,
  token: Backplane.Oauth.Token.t(),
  token_type: String.t()
}
```

# `from_token`

```elixir
@spec from_token(%{
  required(type :: :token | :id_token) =&gt;
    token :: Backplane.Oauth.Token.t() | String.t()
}) :: t()
```

---

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