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

Feature/kakao login #18

Merged
merged 6 commits into from
Jun 19, 2024
Merged

Feature/kakao login #18

merged 6 commits into from
Jun 19, 2024

Conversation

ss7622
Copy link
Member

@ss7622 ss7622 commented Jun 16, 2024

redis를 활용하여 로그인시 refresh 토큰을 레디스에 저장해뒀음
key 값은 유저 이메일 value는 토큰 값

이후 유저의 액세스 토큰이 만료되고 리프레쉬 토큰을 기반으로 토큰을 재발급 받으려 할 때
redis에서 refresh 토큰이 존재하는지 확인 후

refresh 토큰이 존재한다면
프론트에서 보내온 refresh 토큰과 redis에 저장된 refresh 토큰이 일치하는지 확인
확인 후 일치한다면
redis에 새로운 refresh 토큰을 저장 후
새로운 액세스 토큰과 리프레쉬 토큰을 발급하여 프론트에 반환해줌.

#13

@ss7622 ss7622 added the enhancement New feature or request label Jun 16, 2024
@ss7622 ss7622 requested a review from qormoon June 16, 2024 14:48
@ss7622 ss7622 self-assigned this Jun 16, 2024
@qormoon qormoon merged commit 91b819e into dev Jun 19, 2024
1 check passed
@ss7622 ss7622 deleted the feature/kakao-login branch June 19, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants