```ruby
class UserSerializer < ActiveModel::Serializer
  attributes :id, :username
  has_many :collections
  has_many :comments
end
```

Update user serializer to show email and provider
user
```ruby
class UserSerializer < ActiveModel::Serializer
  attributes :id, :username, :email, :provider
  has_many :collections
  has_many :comments
end
```
assistant