This commit is contained in:
Estifo77
2026-07-29 12:08:36 +03:00
parent a9638afa27
commit 0c3d817ee1
2 changed files with 33 additions and 27 deletions

View File

@@ -42,6 +42,7 @@ const authSlice = createSlice({
state.isAuthenticated = false;
state.currentProfile = null;
authStorage.clear();
clearCurrentProfile();
},
setToken(state, action: PayloadAction<string>) {
state.token = action.payload;