mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-13 08:41:46 +00:00
23 lines
428 B
JavaScript
23 lines
428 B
JavaScript
import { client } from './client'
|
|
|
|
export default {
|
|
login(username, password) {
|
|
return client.post('/user/token-auth/', {
|
|
username,
|
|
password
|
|
})
|
|
},
|
|
refresh(token) {
|
|
return client.post('/user/token-refresh/', {
|
|
token
|
|
})
|
|
},
|
|
register(email, name, password, authenticate = true) {
|
|
return client.post('/user/', {
|
|
name,
|
|
email,
|
|
password,
|
|
authenticate
|
|
})
|
|
}
|
|
}
|