Skip to content

Commit

Permalink
fix: mapping the claims attributes to json (#1480)
Browse files Browse the repository at this point in the history
Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
  • Loading branch information
mineme0110 authored Dec 13, 2024
1 parent 248ba5f commit a96e544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ object CredentialService {
case Some("application/json") =>
val jsonBytes = java.util.Base64.getUrlDecoder.decode(attr.value.getBytes(StandardCharsets.UTF_8))
new String(jsonBytes, StandardCharsets.UTF_8).fromJson[Json] match
case Right(value) => ZIO.succeed(Json.Obj().add(attr.name, value))
case Right(value) => ZIO.succeed(jsonObject.add(attr.name, value))
case Left(error) => ZIO.fail(VCClaimsValueParsingError(error))

case Some(media_type) =>
Expand Down

0 comments on commit a96e544

Please sign in to comment.