```ruby
OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'],
    app_name: "Echo for Trello", scope: 'read,write', expiration: 'never'
end
```

Add account OAuth scope in order to get the user's email
user
```ruby
OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'],
    app_name: "Echo for Trello", scope: 'read,write,account', expiration: 'never'
end
```
assistant