From fbd5017f6f389d94218ea725507a65f6a4d3841f Mon Sep 17 00:00:00 2001 From: Sladan Nimcevic Date: Tue, 27 Feb 2024 14:32:10 +0100 Subject: [PATCH] Added missing property for seBankId --- src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt | 3 ++- .../kotlin/com/hedvig/authlib/network/StartLoginResponse.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt b/src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt index 2470358..17c19b6 100644 --- a/src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt +++ b/src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt @@ -43,7 +43,8 @@ public sealed interface AuthAttemptResult { public data class BankIdProperties( val id: String, val statusUrl: StatusUrl, - val autoStartToken: String + val autoStartToken: String, + val liveQrCodeData: String ) : AuthAttemptResult public data class ZignSecProperties( diff --git a/src/commonMain/kotlin/com/hedvig/authlib/network/StartLoginResponse.kt b/src/commonMain/kotlin/com/hedvig/authlib/network/StartLoginResponse.kt index 0cc8201..d66d040 100644 --- a/src/commonMain/kotlin/com/hedvig/authlib/network/StartLoginResponse.kt +++ b/src/commonMain/kotlin/com/hedvig/authlib/network/StartLoginResponse.kt @@ -74,7 +74,8 @@ private fun StartLoginResponse.Success.toAuthAttemptResult(): AuthAttemptResult seBankIdProperties != null -> AuthAttemptResult.BankIdProperties( id = id, statusUrl = StatusUrl(statusUrl), - autoStartToken = seBankIdProperties.autoStartToken + autoStartToken = seBankIdProperties.autoStartToken, + liveQrCodeData = seBankIdProperties.liveQrCodeData ) zignSecProperties != null -> AuthAttemptResult.ZignSecProperties(