blob: 01549e03807d5d75532b7cd89c69ee016ea079e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { LOCAL_SERVER } from '../config';
export default function useLocalServer(actions) {
// Use local server for user
actions.settings.update({
type: 'app',
data: {
server: LOCAL_SERVER,
},
});
// Log into local server
// Credentials are ignored by the server but the client requires them
actions.user.login({
email: 'ferdi@localhost',
password: 'FERDI_',
});
}
|