-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add returning user phonenNumber when login try with kakao
- Loading branch information
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/com/bit/lot/flower/auth/common/dto/RenewAccessTokenDto.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,18 @@ | ||
package com.bit.lot.flower.auth.common.dto; | ||
|
||
import com.bit.lot.flower.auth.common.valueobject.BaseId; | ||
import com.bit.lot.flower.auth.common.valueobject.Role; | ||
import com.bit.lot.flower.auth.social.valueobject.AuthId; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public class RenewAccessTokenDto<T extends BaseId> { | ||
T authId; | ||
Role role; | ||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/bit/lot/flower/auth/common/util/OauthInfoConvertor.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,12 @@ | ||
package com.bit.lot.flower.auth.common.util; | ||
|
||
public class OauthInfoConvertor { | ||
|
||
public static String convertInternationalPhoneNumberToDomestic(String phoneNumber) { | ||
String numericPhone = phoneNumber.replaceAll("[^0-9]", ""); | ||
numericPhone = "0"+ numericPhone.substring(2) ; | ||
return numericPhone; | ||
} | ||
|
||
} | ||
|
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