ducky/web

Paddy 2015-06-30 Parent:99a43a6d1d30 Child:791aec3eb17b

11:3bdc03963abe Go to Latest

ducky/web/src/models/profile.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.

History
1 import Model from 'ampersand-model'
3 export default Model.extend({
4 props: {
5 'id': 'string',
6 'name': 'string',
7 'created': 'date',
8 'last_seen': 'date',
9 },
10 })