Skip to content

Commit

Permalink
added device_id to register and login confirmation response
Browse files Browse the repository at this point in the history
  • Loading branch information
JudjinGM committed Feb 28, 2024
1 parent 5ead9f3 commit 53d3a5c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package app.cashadvisor.authorization.data

import app.cashadvisor.authorization.data.models.AuthByEmailInputDto
import app.cashadvisor.authorization.data.models.ConfirmByEmailWithCodeInputDto
import app.cashadvisor.authorization.data.models.LoginAuthenticationOutputDto
import app.cashadvisor.authorization.data.models.LoginOutputDto
import app.cashadvisor.authorization.data.models.RegisterAuthenticationOutputDto
import app.cashadvisor.authorization.data.models.AuthByEmailInputDto
import app.cashadvisor.authorization.data.models.RegisterOutputDto
import app.cashadvisor.authorization.data.models.TokenDetailsOutputDto
import app.cashadvisor.authorization.data.models.request.ConfirmLoginByEmailRequest
Expand Down Expand Up @@ -49,6 +49,7 @@ class AuthenticationDataMapper @Inject constructor() {
statusCode = response.statusCode,
accessTokenLifeTime = response.accessTokenLifeTime,
refreshTokenLifeTime = response.refreshTokenLifeTime,
deviceId = response.deviceId,
tokenDetailsDto = toTokenDetailsOutputDto(response.tokenDetailsDto)
)
}
Expand Down Expand Up @@ -82,6 +83,7 @@ class AuthenticationDataMapper @Inject constructor() {
statusCode = response.statusCode,
accessTokenLifeTime = response.accessTokenLifeTime,
refreshTokenLifeTime = response.refreshTokenLifeTime,
deviceId = response.deviceId,
tokenDetailsDto = toTokenDetailsOutputDto(response.tokenDetailsDto)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ data class LoginAuthenticationOutputDto(
val statusCode: Int,
val accessTokenLifeTime: Long,
val refreshTokenLifeTime: Long,
val deviceId: String,
val tokenDetailsDto: TokenDetailsOutputDto
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ data class RegisterAuthenticationOutputDto(
val statusCode: Int,
val accessTokenLifeTime: Long,
val refreshTokenLifeTime: Long,
val deviceId: String,
val tokenDetailsDto: TokenDetailsOutputDto
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ data class ConfirmLoginResponse(
@SerialName("status_code") val statusCode: Int,
@SerialName("access_token_life_time") val accessTokenLifeTime: Long,
@SerialName("refresh_token_life_time") val refreshTokenLifeTime: Long,
@SerialName("device_id") val deviceId: String,
@SerialName("token_details") val tokenDetailsDto: TokenDetailsDto
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ data class ConfirmRegisterResponse(
@SerialName("status_code") val statusCode: Int,
@SerialName("access_token_life_time") val accessTokenLifeTime: Long,
@SerialName("refresh_token_life_time") val refreshTokenLifeTime: Long,
@SerialName("device_id") val deviceId: String,
@SerialName("token_details") val tokenDetailsDto: TokenDetailsDto
)

0 comments on commit 53d3a5c

Please sign in to comment.