Skip to content

Commit

Permalink
Merge pull request #29 from HedvigInsurance/feature/upgrade-bank-id-t…
Browse files Browse the repository at this point in the history
…o-v6

Feature/upgrade bank id to v6
  • Loading branch information
sladan-hedvig authored Feb 27, 2024
2 parents c02f310 + 87dbc7d commit 8cd1f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commonMain/kotlin/com/hedvig/authlib/AuthRepository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8cd1f4d

Please sign in to comment.