ducky/web
ducky/web/src/config.js
Implement OAuth token refreshing helper. Create an ampersand-sync/XHR request wrapper that will detect when a request fails because an OAuth2 token has expired, and will try to refresh the token then retry the request.
| paddy@0 | 1 export default { |
| paddy@10 | 2 'urlBase': 'http://slightly.local:9000', |
| paddy@10 | 3 'clientID': '26c602df-14c9-4c1a-bc7b-025844ea43fa', |
| paddy@10 | 4 'clientSecret': 'a438bdcdcf5d2248b43c2f1d304ef8090cdeb3789dadfe834698be4234ed76dd', |
| paddy@2 | 5 'stripeKey': 'pk_test_w2jN5rCKL9t9CcMPta2SsX7J', |
| paddy@0 | 6 } |