-
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.
[CHORE]#7: KakaoLoginmanager를 data module로 옮겼어요
- Loading branch information
1 parent
053eb7d
commit 09b74f9
Showing
9 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
core/model/src/main/kotlin/com/bff/wespot/model/auth/KakaoAuthToken.kt
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,6 @@ | ||
package com.bff.wespot.model.auth | ||
|
||
data class KakaoAuthToken( | ||
val accessToken: String, | ||
val idToken: String?, | ||
) |
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
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
32 changes: 23 additions & 9 deletions
32
.../com/bff/wespot/auth/KakaoLoginManager.kt → .../repository/auth/KakaoLoginManagerImpl.kt
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
7 changes: 7 additions & 0 deletions
7
domain/src/main/kotlin/com/bff/wespot/domain/repository/auth/KakaoLoginManager.kt
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,7 @@ | ||
package com.bff.wespot.domain.repository.auth | ||
|
||
import com.bff.wespot.model.auth.KakaoAuthToken | ||
|
||
interface KakaoLoginManager { | ||
suspend fun loginWithKakao(): KakaoAuthToken | ||
} |
14 changes: 14 additions & 0 deletions
14
domain/src/main/kotlin/com/bff/wespot/domain/repository/usecase/KakaoLoginUseCase.kt
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,14 @@ | ||
package com.bff.wespot.domain.repository.usecase | ||
|
||
import com.bff.wespot.domain.repository.auth.KakaoLoginManager | ||
import javax.inject.Inject | ||
|
||
class KakaoLoginUseCase @Inject constructor( | ||
val kakaoLoginManager: KakaoLoginManager, | ||
) { | ||
// 나중에 authrepository랑 연결될 예정 | ||
suspend inline fun invoke() { | ||
val result = kakaoLoginManager.loginWithKakao() | ||
println("token $result") | ||
} | ||
} |
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
26 changes: 6 additions & 20 deletions
26
feature/auth/src/main/kotlin/com/bff/wespot/auth/AuthScreen.kt
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
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