turingschool / johari_window_api

0 stars 0 forks source link

Fix census service #6

Closed s-espinosa closed 6 years ago

s-espinosa commented 6 years ago

@notmarkmiranda Can you take a look at this?

Changes

Reasons for Changes

Downsides

Potential Solution

Let me know what you think.

notmarkmiranda commented 6 years ago

@s-espinosa: I feel like you'll run in to this problem even without checking in cassettes. Everyone would have their own versions locally of the cassettes and eventually the tokens would go stale? Maybe I'm not understanding.

I think having the cassettes checked in is okay, we just need a solution that either mocks the response without a token, or a way to refresh tokens when that happens (similar to record new episodes)? At first google search: https://blog.element84.com/rails-vcr-tokens.html, this might be a possible solution? I'm not sure where the token goes in these requests.