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