Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Refreshtoken 핸들링 #70

Merged
merged 12 commits into from
Nov 8, 2023
Merged

Conversation

Yonge2
Copy link
Contributor

@Yonge2 Yonge2 commented Nov 7, 2023

레디스를 이용한 리프래시 토큰 유효성 검증과 재발급 과정을 추가했습니다.

close #48

@Yonge2 Yonge2 self-assigned this Nov 7, 2023
@scarf005 scarf005 self-assigned this Nov 7, 2023
src/user/auth/auth_router.ts Outdated Show resolved Hide resolved
src/user/authorization/jwtUtils.ts Outdated Show resolved Hide resolved
src/redis.ts Outdated Show resolved Hide resolved
@Yonge2 Yonge2 marked this pull request as draft November 7, 2023 12:00
@Yonge2 Yonge2 marked this pull request as ready for review November 8, 2023 02:33
@scarf005 scarf005 linked an issue Nov 8, 2023 that may be closed by this pull request
Copy link
Contributor

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET /auth에서 다음과 같은 오류가 발생합니다.

GET /auth 500 6.043 ms - 779
Error: Bad "options.expiresIn" option the payload already has an "exp" property.
    at Object.module.exports (/home/scarf/repo/etc/hotplace/node_modules/jsonwebtoken/sign.js:163:20)
    at createAccessToken (/home/scarf/repo/etc/hotplace/src/user/authorization/jwtUtils.ts:12:7)
    at reissueAccessToken (/home/scarf/repo/etc/hotplace/src/user/auth/auth_router.ts:50:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async mainReqHandler (file:///home/scarf/repo/etc/hotplace/node_modules/@ts-rest/express/index.mjs:78:28)

@scarf005 scarf005 merged commit b54692c into wanted-7h:main Nov 8, 2023
6 checks passed
@Yonge2 Yonge2 deleted the refreshtoken branch November 8, 2023 06:16
@Yonge2
Copy link
Contributor Author

Yonge2 commented Nov 8, 2023

아 재발급 시, 페이로드에서 시작일 만료일을 뺐어야되는데, 그대로 써버렸네요 리펙토링하면서 고치겠습니다!

@scarf005
Copy link
Contributor

scarf005 commented Nov 8, 2023

아, 제가 머지하면서 c73d5c5f20dd467e8f30fce83329d740c80f4066 에서 수정했어요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

회원 가입 후 로그인 불가 refresh token 핸들링
2 participants