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