From a6c070586e07ca2dc0aba401e23892bd79fa770f Mon Sep 17 00:00:00 2001 From: John Melati Date: Wed, 16 Oct 2024 17:47:03 +0200 Subject: [PATCH] fix: code cleanup --- .../kotlin/com/sphereon/oid/fed/client/mapper/JsonMapper.kt | 4 ++-- .../com/sphereon/oid/fed/client/crypto/CryptoTest.js.kt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/mapper/JsonMapper.kt b/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/mapper/JsonMapper.kt index fd22defc..5cd3c302 100644 --- a/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/mapper/JsonMapper.kt +++ b/modules/openid-federation-client/src/commonMain/kotlin/com/sphereon/oid/fed/client/mapper/JsonMapper.kt @@ -16,8 +16,8 @@ private val json = Json { } /* - * Used for mapping JWT token to EntityStatement object - */ + * Used for mapping JWT token to EntityStatement object + */ @OptIn(InternalSerializationApi::class) fun mapEntityStatement(jwtToken: String, targetType: KClass): T? { val payload: JsonObject = decodeJWTComponents(jwtToken).payload diff --git a/modules/openid-federation-client/src/jsTest/kotlin/com/sphereon/oid/fed/client/crypto/CryptoTest.js.kt b/modules/openid-federation-client/src/jsTest/kotlin/com/sphereon/oid/fed/client/crypto/CryptoTest.js.kt index e247cc65..4c174475 100644 --- a/modules/openid-federation-client/src/jsTest/kotlin/com/sphereon/oid/fed/client/crypto/CryptoTest.js.kt +++ b/modules/openid-federation-client/src/jsTest/kotlin/com/sphereon/oid/fed/client/crypto/CryptoTest.js.kt @@ -17,7 +17,6 @@ external object Jose { class CryptoTest { private val cryptoService = CryptoServiceJS.register(CryptoPlatformCallback()) -// private val cryptoService = CryptoServiceJS.register(null) @Test fun testVerifyValidJwt() = runTest {