Conversation
- 로그인, 회원가입 API - 토큰 관리 - 로그아웃, 액세스토큰 재발급 API
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.
🎯 작업 내용
주요 변경사항
@CurrentMember구현상세 내용
POST/api/auth/signupPOST/api/auth/loginPOST/api/auth/logoutPOST/api/auth/refresh-tokensequenceDiagram autonumber participant Client participant Controller as AuthController participant Service as LocalLoginService participant AuthService as AuthenticationService participant Repo as MemberRepository participant Encoder as PasswordEncoder participant Jwt as JwtTokenProvider participant TokenService as TokenService participant Redis as RefreshToken Store Client->>Controller: POST /api/auth/signup\nAuthRequest.SignUpDTO Controller->>Service: signUp(request) Service->>Repo: existsByEmail(email) Repo-->>Service: false Service->>Encoder: encode(password) Encoder-->>Service: encoded password Service->>Repo: save(Member) Repo-->>Service: Member Service->>AuthService: generateLoginResponse(member) AuthService->>Jwt: issueRefreshToken(authentication) Jwt-->>AuthService: refreshToken AuthService->>TokenService: saveRefreshToken(memberId, refreshToken) TokenService->>Redis: save(memberId, refreshToken) Redis-->>TokenService: saved AuthService->>Jwt: issueAccessToken(authentication) Jwt-->>AuthService: accessToken AuthService-->>Service: AuthResponse.LoginResponseDTO Service-->>Controller: response Controller-->>Client: accessToken + member info\nSet-Cookie: refreshToken✅ 체크리스트
📋 API 명세서
🚧 후속 작업