1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-22 20:32:24 +00:00
bramw_baserow/web-frontend/services/auth.js

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
})
}
}