Skip to content

Commit

Permalink
Merge pull request #669 from walt-id/fix/login
Browse files Browse the repository at this point in the history
fix: Set ignoreUnknownKeys to true for getLoginRequest
  • Loading branch information
SuperBatata authored Aug 5, 2024
2 parents 8734205 + 937e751 commit b3451ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ suspend fun ApplicationCall.getLoginRequest() = runCatching {
}
)
}
Json.decodeFromJsonElement<AccountRequest>(jsonObject)
val json = Json { ignoreUnknownKeys = true }
json.decodeFromJsonElement<AccountRequest>(jsonObject)
}.getOrElse { throw LoginRequestError(it) }


Expand Down

0 comments on commit b3451ea

Please sign in to comment.