class Attio::Meta

def token

Build token object from flat attributes
def token
  return nil unless self[:client_id]
  
  {
    id: self[:client_id],
    type: self[:token_type] || "Bearer",
    scope: self[:scope]
  }.compact
end