diff --git a/src/state/initialState.js b/src/state/initialState.js index 20f3db8..97cca47 100644 --- a/src/state/initialState.js +++ b/src/state/initialState.js @@ -1,3 +1,8 @@ +import { getItem } from "../utils/localStorage"; +import { storageKeys } from "../utils/identity"; + +const token = getItem(storageKeys.TOKEN); + export const initialState = { credentials: { userName: "", @@ -5,7 +10,7 @@ export const initialState = { }, security: { authorization: { - token: null + token } }, network: {