sul-dlss / folio_client

Interface for interacting with the Folio ILS API.
Other
0 stars 0 forks source link

auto refresh token on client call #10

Closed peetucket closed 1 year ago

peetucket commented 1 year ago

Fixes #9 - request a new token automatically if expired with a wrapper class, same concept as in the globus-client

Tested on the console and with a new spec.

Note: i borrowed the spec from the globus-client, but it's not really testing what's happening there correctly, since the mocking that's done here is not actually mocking a raise followed by a return. Separate PR for adjusting the test in globus client so it's actually testing it correctly.