Module: Rubino::API::Operations::OAuth::Serializer
- Defined in:
- lib/rubino/api/operations/oauth/serializer.rb
Overview
Strips secret fields from connection rows before they leave the API. Tokens never go on the wire — clients use them implicitly through tools, not directly.
Constant Summary collapse
- PUBLIC_FIELDS =
%i[id provider account_id account_email expires_at scopes metadata created_at updated_at].freeze
Class Method Summary collapse
Class Method Details
.call(connection) ⇒ Object
14 15 16 |
# File 'lib/rubino/api/operations/oauth/serializer.rb', line 14 def self.call(connection) connection.slice(*PUBLIC_FIELDS) end |