bitpay / ruby-client

Powerful, flexible, lightweight SDK for the BitPay Bitcoin Payment Gateway API.
MIT License
79 stars 64 forks source link

refresh tokens builds different data structure #42

Closed philosodad closed 9 years ago

philosodad commented 9 years ago

When there are no tokens in the client, refresh tokens builds a data structure that has

{
  facade: <facade>
  token: <token>
}

But we are expecting

{ <facade>: <token> }

I'm not sure if this causes a problem, but it needs to be checked out.

philosodad commented 9 years ago

We actually appear to be getting back the data structure { : }, not sure how the other idea got started.