# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.TokenView do
def render("show.json", %{token: token_entry}) do
%{
id: token_entry.id,
- token: token_entry.token,
- refresh_token: token_entry.refresh_token,
- valid_until: token_entry.valid_until
+ valid_until: token_entry.valid_until,
+ app_name: token_entry.app.client_name
}
end
end