mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
auth
This commit is contained in:
parent
56d714d655
commit
e0bba90d2e
12 changed files with 264 additions and 89 deletions
|
@ -1,14 +1,14 @@
|
|||
import {EMPTY_TOKEN, EMPTY_USER, AUTH_USER_ACTIONS} from "~/redux/auth/constants";
|
||||
import { EMPTY_USER } from "~/redux/auth/constants";
|
||||
import { createReducer } from "~/utils/reducer";
|
||||
import {IAuthState} from "~/redux/auth/types";
|
||||
import {AUTH_USER_HANDLERS} from "~/redux/auth/handlers";
|
||||
import { IAuthState } from "~/redux/auth/types";
|
||||
import { AUTH_USER_HANDLERS } from "~/redux/auth/handlers";
|
||||
|
||||
const HANDLERS = {
|
||||
...AUTH_USER_HANDLERS,
|
||||
};
|
||||
|
||||
const INITIAL_STATE: IAuthState = {
|
||||
token: { ...EMPTY_TOKEN },
|
||||
token: null,
|
||||
user: { ...EMPTY_USER },
|
||||
login: {
|
||||
error: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue