1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-13 08:41:46 +00:00
bramw_baserow/web-frontend/services/authService.js
2019-06-21 20:22:57 +02:00

15 lines
289 B
JavaScript

import { client } from './client'
export default {
login(username, password) {
return client.post('/api/token-auth/', {
username: username,
password: password
})
},
refresh(token) {
return client.post('/api/token-refresh/', {
token: token
})
}
}