File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ const client = axios.create({
1313client . 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 } ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments