Skip to content

Commit 8a1adfb

Browse files
committed
feat(oauth): 공통 oauth 정보 클래스 정적 팩토리 메서드 추가
1 parent 40fe2fe commit 8a1adfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/somemore/global/auth/oauth/domain/CommonOAuthInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
public record CommonOAuthInfo(
44
OAuthProvider provider,
55
String oauthId) {
6+
7+
public static CommonOAuthInfo of(OAuthProvider provider, String oauthId) {
8+
return new CommonOAuthInfo(provider, oauthId);
9+
}
610
}

0 commit comments

Comments
 (0)