Skip to content

Commit 38e5f01

Browse files
committed
test: 탈퇴 처리 테스트
1 parent ab4688e commit 38e5f01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/apis/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ const client = axios.create({
1313
client.interceptors.request.use(
1414
(config) => {
1515
const { accessToken } = useAuthStore.getState();
16+
// console.log('intercepter', accessToken);
17+
console.log(config.url);
1618
if (config.url !== '/auth/reissue' && accessToken) {
1719
config.headers.Authorization = `Bearer ${accessToken}`;
20+
console.log('intercepter', config.headers);
1821
}
1922
return config;
2023
},

src/pages/Auth/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const AuthCallbackPage = () => {
4242
if (!createZipCodeResponse) throw new Error('Error creating ZipCode');
4343
const zipCode = createZipCodeResponse.data.data.zipCode;
4444
const newAccessToken = createZipCodeResponse.headers['authorizazion'];
45-
4645
setZipCode(zipCode);
4746
setAccessToken(newAccessToken);
4847
}

0 commit comments

Comments
 (0)