aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/store.ts')
-rw-r--r--jb-ui/src/store.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/jb-ui/src/store.ts b/jb-ui/src/store.ts
index 07cac9e..baf13b7 100644
--- a/jb-ui/src/store.ts
+++ b/jb-ui/src/store.ts
@@ -1,6 +1,8 @@
import appReducers from "@/models/appSlice";
import grlStatsReducers from "@/models/grlStatsSlice";
import grlEventsReducers from "@/models/grlEventsSlice";
+import { authApi } from "@/models/authAPI";
+
import profilingQuestionsReducers from "@/models/profilingQuestionsSlice";
import type { Action, ThunkAction } from "@reduxjs/toolkit";
import { configureStore } from "@reduxjs/toolkit";
@@ -8,10 +10,13 @@ import { configureStore } from "@reduxjs/toolkit";
export const store = configureStore({
reducer: {
app: appReducers,
+ // auth: authReducers,
+ [authApi.reducerPath]: authApi.reducer,
stats: grlStatsReducers,
events: grlEventsReducers,
profilingQuestions: profilingQuestionsReducers,
},
+ middleware: (getDefault) => getDefault().concat(authApi.middleware),
});
// Infer the type of `store`