accounts-frontend/src/services/api/authentication.js

26 lines
522 B
JavaScript
Raw Normal View History

import request from 'services/request';
export default {
login({
login = '',
password = '',
rememberMe = false
}) {
return request.post(
'/api/authentication/login',
{login, password, rememberMe}
);
},
logout() {
return request.post('/api/authentication/logout');
},
refreshToken(refresh_token) {
return request.post(
'/api/authentication/refresh-token',
{refresh_token}
);
}
};