22301014 | bc4616f | 2025-06-03 16:59:44 +0800 | [diff] [blame] | 1 | import { createSlice } from "@reduxjs/toolkit"; |
2 | import type { AuthState } from "../../store/types"; | ||||
3 | |||||
4 | |||||
5 | const initialState: AuthState = { | ||||
6 | token: '', | ||||
7 | loading: false, | ||||
8 | isAuth: false, | ||||
9 | } | ||||
10 | |||||
11 | const authSlice = createSlice({ | ||||
12 | name: 'auth', | ||||
13 | initialState, | ||||
14 | reducers: {}, | ||||
15 | }); | ||||
16 | |||||
17 | export default authSlice.reducer; |