Skip to content

Conversation

@bo-ram-bo-ram
Copy link
Member

@bo-ram-bo-ram bo-ram-bo-ram commented Jan 31, 2025

Pull request

Related issue

reslove #28

Motivation and context

Solution

  • 최초 회원가입 / 로그인시 응답에 access token과 refresh token을 같이 내려주고 access token을 가지고 요청을 보낼때마다 사용합니다.
  • 이때 access token이 만료됐다는 에러를 서버가 반환하면 해당 api를 클라이언트가 요청하고, 요청시 refresh token을 통해 서버는 유효한 요청인지 어떤 사용자인지 확인 후 새로운 access token을 반환합니다.
  • user엔티티에 누락된 profileImage를 설정하였고 필드명을 설계에 맞게 수정하였습니다.
    • 기본 이미지를 아래 이미지로 하였는데 s3 셋팅 후 기본 이미지를 설정할 예정입니다.
    스크린샷 2025-01-29 오전 12 35 48

How has this been tested

image 로그인 시 발급받은 refresh token으로 image access token 재발급

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the docs/CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@bo-ram-bo-ram bo-ram-bo-ram self-assigned this Jan 31, 2025
@bo-ram-bo-ram bo-ram-bo-ram added ✨ Feature 기능 추가 🎮 BE 백엔드 ♻️ Need To Refactor 추후 리팩토링이 필요한 이슈 및 논의 무조건 스프린트내에 해야하는 것들 and removed ♻️ Need To Refactor 추후 리팩토링이 필요한 이슈 및 논의 labels Jan 31, 2025
Copy link
Member

@mirlee0304 mirlee0304 left a comment

Choose a reason for hiding this comment

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

고생하셨습니당!

@bo-ram-bo-ram bo-ram-bo-ram merged commit eeb4d02 into dev Feb 2, 2025
1 check failed
@bo-ram-bo-ram bo-ram-bo-ram deleted the be-feat/access-token-reissue branch February 2, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 추가 무조건 스프린트내에 해야하는 것들 🎮 BE 백엔드

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants