summaryrefslogtreecommitdiff
path: root/src/reducers/auth.js
blob: 0d01b3007c5db58aac01fd95a125017ee70abf01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import {COMPLETE_LOGIN, LOG_OUT} from "../actions/auth";

export const auth = (state = {}, action) => {
    switch (action.type) {
        case COMPLETE_LOGIN:
            return action.payload;
        case LOG_OUT:
            return {};
        default:
            return state;
    }
};