dblock / slack-strava

(Re)Post Strava activities to Slack
https://slava.playplay.io
MIT License
37 stars 6 forks source link

Disable user when a token is invalid #31

Closed dblock closed 6 years ago

dblock commented 6 years ago
W, [2018-04-18T13:37:11.584032 #234]  WARN -- : Error in cron for team name=***, id=TA3P0B3RS, user user_id=UA88GCZ1Q, user_name=****, {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]} [HTTP 401], /app/vendor/bundle/ruby/2.3.0/gems/strava-api-v3-0.7.0/lib/strava/api/v3/common.rb:28:in `block in api_call'

And send a notification to the user that they were disconnected.