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/auth.js
2019-07-01 20:31:09 +02:00

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