summaryrefslogtreecommitdiff
path: root/frontend/src/actions/auth.js
blob: 38c1a78283fc417d61ae0149ecdd894c3343ae27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export const LOG_IN = 'LOG_IN'
export const LOG_IN_SUCCEEDED = 'LOG_IN_SUCCEEDED'
export const LOG_OUT = 'LOG_OUT'

export function logIn(payload) {
    return {
        type: LOG_IN,
        payload,
    }
}

export function logInSucceeded(payload) {
    return {
        type: LOG_IN_SUCCEEDED,
        payload,
    }
}

export function logOut() {
    return {
        type: LOG_OUT,
    }
}