class Doorkeeper::OAuth::TokenResponse

def body

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