mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-03 12:43:17 +00:00
Keychain token storage, Axios client with async token injection, Cognito PKCE auth via react-native-app-auth, Redux auth slice, TanStack Query config, offline draft queue with NetInfo auto-submit, and SHOC theme.
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import authReducer from './slices/authSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
auth: authReducer,
|
|
},
|
|
middleware: (getDefaultMiddleware) =>
|
|
getDefaultMiddleware({
|
|
serializableCheck: {
|
|
ignoredActions: ['auth/setUser'],
|
|
},
|
|
}),
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|