모든 기기에서 로그아웃 추가

This commit is contained in:
2023-08-09 08:56:04 +09:00
parent a75217ee09
commit 68f2896031
6 changed files with 85 additions and 1 deletions

View File

@@ -98,4 +98,7 @@ interface UserApi {
@POST("/member/logout")
fun logout(@Header("Authorization") authHeader: String): Single<ApiResponse<Any>>
@POST("/member/logout/all")
fun logoutAll(@Header("Authorization") authHeader: String): Single<ApiResponse<Any>>
}

View File

@@ -78,4 +78,5 @@ class UserRepository(private val userApi: UserApi) {
) = userApi.signOut(request, authHeader = token)
fun logout(token: String) = userApi.logout(authHeader = token)
fun logoutAllDevice(token: String) = userApi.logoutAll(authHeader = token)
}