Skip to content

Commit

Permalink
fix(#26): registerToken request 형식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
uiop5809 committed May 20, 2024
1 parent 0834eb2 commit fa1cdc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/app/signin/process4/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const SigninProcess4 = () => {
const [checkedItems, setCheckedItems] = useState<{ [key: string]: boolean }>(
{}
);
const registerToken = auth.registerToken;

const handleCheckboxChange = (item: string) => {
setCheckedItems((prev) => ({ ...prev, [item]: !prev[item] }));
Expand All @@ -49,7 +48,7 @@ const SigninProcess4 = () => {
);

const User: PostUserRequest = {
registrationToken: registerToken,
registrationToken: auth.registerToken,
agreement: user.agreement,
phoneNumber: user.phoneNumber,
children: updateChildren,
Expand Down
12 changes: 6 additions & 6 deletions src/redux/slices/authSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export const authSlice = createSlice({
},
reducers: {
setToken: (state, action) => {
state.accessToken = action.payload;
state.refreshToken = action.payload;
state.registerToken = action.payload;
state.accessToken = action.payload.accessToken;
state.refreshToken = action.payload.refreshToken;
state.registerToken = action.payload.registerToken;
},
clearToken: (state) => {
accessToken: "";
refreshToken: "";
registerToken: "";
state.accessToken = "";
state.refreshToken = "";
state.registerToken = "";
},
},
});
Expand Down

0 comments on commit fa1cdc6

Please sign in to comment.