๐ Fix/#344 ๋ฆฌํ๋ ์ ํ ํฐ ๊ด๋ จ ์๋ํฌ์ธํธ #345
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.
๐ ๊ด๋ จ ์ด์
#344
โจ ์์ ํ ๋ด์ฉ
RT๋ฅผ ํตํด AT๋ฅผ ๊ฐฑ์ ํ ๋, ํด๋น ์๋ํฌ์ธํธ๊ฐ ์ธ์ฆ์ด ํ์ํ ์ํ๋ก ์ค์ ๋์ด ์์ด 403์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
ํด๋น ๋ถ๋ถ์ ์ธ์ฆ์์ด ์ ๊ทผํ ์ ์๋๋ก ์์ ํ์ต๋๋ค.
๐ PR Point
POST
/api/users/refresh๐ฐ ์ฐธ๊ณ ์ฌํญ
reissue api๋ AT๊ฐ ๋ง๋ฃ๋ ์ดํ์ AT์์ด ํธ์ถํฉ๋๋ค.
์๋ต์ ๋ฐ๋ฅธ ๋ก์ง
200 OK
์ด๋, ์๋ฒ๋ AT๋ฅผ ๋ฐ๊ธํ๊ณ redis์ ์ ์ฅ๋ RT๋ฅผ ๊ฐฑ์ ํฉ๋๋ค.
ํ๋ก ํธ๋ AT๋ฅผ ๊ฐฑ์ ํฉ๋๋ค.
AUTH401_4 ๋ฆฌํ๋ ์ ํ ํฐ ๋ง๋ฃ
์๋ฒ๋ redis์ ์ ์ฅ๋ RT๊ฐ ๋ง๋ฃ๋์์์ ํ์ธํ ํ ์ฟ ํค์ ์ ์ฅ๋ RT๋ฅผ ์ญ์ ํฉ๋๋ค.
์ด ๊ฒฝ์ฐ ํ๋ก ํธ์์ ๋ก๊ทธ์์์ด ํ์ํฉ๋๋ค.
AUTH401_3 RT ๋ฏธ์ฑ
์ด์ ์ RT๊ฐ ๋ง๋ฃ๋์ด ์ฟ ํค์์ ์ญ์ ๋ ์ํ์์ ๋ค์ ์ฌ๋ฐ๊ธ ์์ฒญ์ ๋ณด๋ผ ๊ฒฝ์ฐ ๋ฐ์ํฉ๋๋ค.
์ด ๊ฒฝ์ฐ๋ ํ๋ก ํธ์์ ๋ก๊ทธ์์ ๋ก์ง ํธ์ถ์ด ํ์ํฉ๋๋ค.
๐ท ์คํฌ๋ฆฐ์ท ๋๋ GIF
X