Polished login

This commit is contained in:
Keannu Christian Bernasol 2023-07-03 22:40:58 +08:00
parent a634f07f2b
commit 4faf222b52
5 changed files with 123 additions and 18 deletions

View file

@ -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 = {