-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #11 Oauth 전화번호 인증 성공 시, 기존 계정 존재하면 로그인 처리
- Loading branch information
1 parent
d23125e
commit 6582d32
Showing
3 changed files
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/kcy/fitapet/domain/oauth/dto/OauthSmsReq.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.kcy.fitapet.domain.oauth.dto; | ||
|
||
import com.kcy.fitapet.global.common.util.sms.dto.SmsReq; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Schema(description = "OAuth 전화 번호 인증 요청 정보") | ||
public record OauthSmsReq( | ||
@Schema(description = "전화 번호", example = "01012345678") | ||
@NotNull(message = "전화 번호는 필수 입력값입니다.") | ||
String to, | ||
@Schema(description = "OIDC 토큰") | ||
@NotNull(message = "OIDC 토큰은 필수 입력값입니다.") | ||
String idToken, | ||
@Schema(description = "OIDC 토큰 유효성 검사를 위한 nonce") | ||
@NotNull(message = "nonce는 필수 입력값입니다.") | ||
String nonce | ||
) { | ||
public SmsReq toSmsReq() { | ||
return SmsReq.builder() | ||
.to(this.to) | ||
.build(); | ||
} | ||
} |
This file contains 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