class Doorkeeper::OAuth::TokenResponse

def body

def body
  @body ||= {
    "access_token" => token.plaintext_token,
    "token_type" => token.token_type,
    "expires_in" => token.expires_in_seconds,
    "refresh_token" => token.plaintext_refresh_token,
    "scope" => token.scopes_string,
    "created_at" => token.created_at.to_i,
  }.reject { |_, value| value.blank? }
end

def headers

def headers
  {
    "Cache-Control" => "no-store, no-cache",
    "Content-Type" => "application/json; charset=utf-8",
    "Pragma" => "no-cache",
  }
end

def initialize(token)

def initialize(token)
  @token = token
end

def status

def status
  :ok
end