Conversation
*Total -- 22,163.01kb -> 18,810.80kb (15.13%) /public/screenshots/home.png -- 4,074.28kb -> 2,187.80kb (46.3%) /public/icons/logo/동연.png -- 91.71kb -> 59.04kb (35.62%) /public/icons/ui/pencil.png -- 7.89kb -> 5.12kb (35.18%) /public/icons/logo/google.png -- 5.09kb -> 3.62kb (28.82%) /public/icons/logo/gdgoc.png -- 9.27kb -> 6.81kb (26.61%) /public/images/study/study1.jpg -- 280.93kb -> 219.12kb (22%) /public/images/study/study2.jpg -- 265.09kb -> 207.42kb (21.76%) /public/images/study/study5.jpg -- 268.89kb -> 210.72kb (21.63%) /public/images/study/study4.jpg -- 285.21kb -> 223.95kb (21.48%) /public/images/study/study3.jpg -- 270.76kb -> 213.16kb (21.27%) /public/images/activity/snack.jpg -- 1,741.33kb -> 1,507.40kb (13.43%) /public/icons/logo/창지단.png -- 50.15kb -> 43.54kb (13.18%) /public/icons/logo/강쌤과외.png -- 50.95kb -> 45.09kb (11.51%) /public/icons/gdgocIcon/144x144.png -- 4.61kb -> 4.11kb (10.68%) /public/images/activity/seminar.jpg -- 2,422.63kb -> 2,180.54kb (9.99%) /public/icons/gdgocIcon/152x152.png -- 4.94kb -> 4.46kb (9.71%) /public/icons/logo/link.png -- 65.32kb -> 59.00kb (9.68%) /public/icons/gdgocIcon/384x384.png -- 14.43kb -> 13.06kb (9.47%) /public/icons/gdgocIcon/128x128.png -- 4.11kb -> 3.73kb (9.33%) /public/icons/gdgocIcon/192x192.png -- 6.28kb -> 5.71kb (9.09%) /public/icons/gdgocIcon/96x96.png -- 3.02kb -> 2.75kb (8.68%) /public/images/activity/christmas.jpg -- 521.86kb -> 477.41kb (8.52%) /public/images/bgimg.png -- 4,709.46kb -> 4,354.65kb (7.53%) /public/icons/gdgocIcon/512x512.png -- 20.03kb -> 18.77kb (6.31%) /public/icons/logo/inha.png -- 111.95kb -> 105.34kb (5.9%) /public/icons/logo/gpters.png -- 126.57kb -> 119.58kb (5.52%) /public/images/activity/globalthon.jpg -- 3,379.72kb -> 3,204.29kb (5.19%) /public/icons/gdgocIcon/72x72.png -- 2.32kb -> 2.20kb (5.01%) /public/images/activity/songdo_conf.jpg -- 119.91kb -> 115.22kb (3.91%) /public/images/activity/party.jpg -- 2,006.62kb -> 1,972.33kb (1.71%) /public/images/activity/googleconf.jpg -- 1,237.67kb -> 1,234.87kb (0.23%) Signed-off-by: ImgBotApp <[email protected]>
[ImgBot] Optimize images
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the refresh token API route and makes a minor adjustment to error handling during authentication.
- Updated refresh route in the API endpoint from "/refresh" to "/auth/refresh".
- Expanded error status handling in useAuthenticatedApi to include 401 errors.
- Introduced a new API_REFRESH_URL constant in useAuthApi, which may need consistency adjustments with the route changes.
Reviewed Changes
Copilot reviewed 35 out of 35 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/services/study/useStudyList.js | Commented out development code for GDGOC study list; verify if this code is needed. |
| src/hooks/useAuthenticatedApi.js | Updated error handling to check both 401 and 403 statuses with an added explanatory comment. |
| src/hooks/useAuthApi.js | Added API_REFRESH_URL constant; the endpoint still uses "/refresh" which may be inconsistent. |
| src/app/api/auth/refresh/route.js | Revised refresh endpoint path to include the "auth" segment for production consistency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ Related Issue
📝 PR Description