ducky/web
ducky/web/package.json
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.
1.1 --- a/package.json Tue Jun 30 01:18:52 2015 -0400 1.2 +++ b/package.json Tue Jun 30 01:21:42 2015 -0400 1.3 @@ -8,8 +8,10 @@ 1.4 "ampersand-collection": "^1.4.5", 1.5 "ampersand-model": "^5.0.3", 1.6 "ampersand-react-mixin": "^0.1.2", 1.7 + "ampersand-rest-collection": "^4.0.0", 1.8 "ampersand-router": "^3.0.2", 1.9 "ampersand-sync": "^3.0.7", 1.10 + "andlog": "^1.0.0", 1.11 "babel": "^5.1.13", 1.12 "babel-loader": "^5.0.0", 1.13 "css-loader": "^0.12.0", 1.14 @@ -33,7 +35,8 @@ 1.15 "sass-loader": "0.4.2", 1.16 "style-loader": "^0.12.0", 1.17 "url-loader": "^0.5.5", 1.18 - "webpack": "1.8.9" 1.19 + "webpack": "1.8.9", 1.20 + "xhr": "^2.0.2" 1.21 }, 1.22 "devDependencies": { 1.23 "react-hot-loader": "^1.2.5",