Expires user login session after 5 minutes

This commit was merged in pull request #24.
This commit is contained in:
victorAnumudu
2023-02-01 07:18:03 +01:00
parent 1f8a6d0d30
commit 33b1571929
3 changed files with 23 additions and 17 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
userInfo: JSON.parse(localStorage.getItem("profile"))
userInfo: localStorage.getItem('profile') && JSON.parse(localStorage.getItem("profile"))
};
export const userSlice = createSlice({