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

Response returned in case of introspection request success. Provides mandatory data needed to respond to token introspection.

# `t`

```elixir
@type t() :: %Backplane.Oauth.IntrospectResponse{
  active: boolean(),
  client_id: String.t(),
  exp: integer(),
  iat: integer(),
  iss: String.t(),
  private_key: String.t(),
  scope: String.t(),
  sub: String.t(),
  username: String.t()
}
```

# `from_error`

```elixir
@spec from_error(error :: Backplane.Oauth.Error.t()) ::
  introspect_response :: %Backplane.Oauth.IntrospectResponse{
    active: false,
    client_id: term(),
    exp: term(),
    iat: term(),
    iss: term(),
    private_key: term(),
    scope: term(),
    sub: term(),
    username: term()
  }
```

# `from_token`

```elixir
@spec from_token(token :: Backplane.Oauth.Token.t()) :: introspect_response :: t()
```

---

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