blob: a5c1bbbe8d04ae2f2cff061d5d8633e6a2584c92 (
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: 'ferdium@localhost',
password: 'FERDIUM_',
});
}
|