aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/store.ts
diff options
context:
space:
mode:
authorMax Nanis2026-09-11 18:16:06 -0700
committerMax Nanis2026-09-11 18:16:06 -0700
commit11d63b171501b9c29398133b795c3bcc1ae85a1b (patch)
tree9ef60f1723357889f8bd72420a0c6f7ae5153fa1 /jb-ui/src/store.ts
parentedff9381275d90d7be5f078430554ae592a27f5d (diff)
downloadamt-jb-11d63b171501b9c29398133b795c3bcc1ae85a1b.tar.gz
amt-jb-11d63b171501b9c29398133b795c3bcc1ae85a1b.zip
using RTK with session login. start of magic token request
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`