Stockage du jeton d'authentification dans le store local, permettant l'utilisation de hooks

This commit is contained in:
2024-12-10 18:56:50 +01:00
parent 72862da3a6
commit 363dfa5c74
8 changed files with 108 additions and 31 deletions

View File

@ -1,8 +1,10 @@
import { configureStore } from '@reduxjs/toolkit'
import authReducer from './features/location/authSlice'
import locationReducer from './features/location/locationSlice'
const store = configureStore({
reducer: {
auth: authReducer,
location: locationReducer,
},
})