spee.ch/react/utils/auth.js

10 lines
209 B
JavaScript
Raw Normal View History

2018-01-24 04:36:09 +01:00
import {makeGetRequest} from 'utils/xhr';
module.exports = {
authenticateUser () {
// send authentication request to server
// receive the user info back
return makeGetRequest('/user');
},
};