Skip to content

Commit fa57cee

Browse files
authored
Merge pull request #2 from ALOK9442/feature/store
feature: setToken added
2 parents 0b41563 + d28ce9f commit fa57cee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/store/authslice.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const authSlice = createSlice({
1515
state.token = action.payload.token
1616
state.isAuth = true
1717
},
18+
setToken(state,action){
19+
state.token = action.payload
20+
},
1821
logout(state){
1922
state.user = null
2023
state.token = null

0 commit comments

Comments
 (0)