mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-13 08:41:46 +00:00
15 lines
289 B
JavaScript
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
|
|
})
|
|
}
|
|
}
|