mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Polished login
This commit is contained in:
parent
a634f07f2b
commit
4faf222b52
5 changed files with 123 additions and 18 deletions
|
@ -13,7 +13,7 @@ export const AuthSlice = createSlice({
|
|||
},
|
||||
reducers: {
|
||||
setToken: (state, action) => {
|
||||
state.creds.token = action.payload.token;
|
||||
state.creds.token = action.payload;
|
||||
},
|
||||
setUser: (state, action) => {
|
||||
state.creds = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue