UNPKG

666 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.logoutCase = exports.loginCase = void 0;
7
8var _actions = require("./actions");
9
10var _userReductions = require("./user-reductions");
11
12var loginCase = function loginCase(envState, payload) {
13 return [_actions.SHARYN_LOG_USER_IN, function () {
14 return (0, _userReductions.setUser)(payload);
15 }];
16}; // eslint-disable-next-line no-unused-vars
17
18
19exports.loginCase = loginCase;
20
21var logoutCase = function logoutCase(envState, payload) {
22 return [_actions.SHARYN_LOG_USER_OUT, function () {
23 return (0, _userReductions.deleteUser)();
24 }];
25};
26
27exports.logoutCase = logoutCase;
\No newline at end of file