Skip to content

Commit 03a0d65

Browse files
authored
Merge pull request #1310 from WalletConnect/fix/notify/invalid_did_web_decoding
2 parents 28dddeb + bb865a2 commit 03a0d65

File tree

1 file changed

+1
-1
lines changed
  • foundation/src/main/kotlin/com/walletconnect/foundation/util/jwt

1 file changed

+1
-1
lines changed

foundation/src/main/kotlin/com/walletconnect/foundation/util/jwt/JwtUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fun encodeDidWeb(appDomain: String): String {
9292

9393
// todo: What about https:// ?
9494
fun decodeDidWeb(didWeb: String): String =
95-
didWeb.removePrefix(listOf(DID_PREFIX, DID_METHOD_WEB).joinToString(DID_DELIMITER))
95+
didWeb.removePrefix(listOf(DID_PREFIX, DID_METHOD_WEB).joinToString(separator = DID_DELIMITER, postfix = DID_DELIMITER))
9696

9797

9898
inline fun <reified C : JwtClaims> decodeJwt(jwt: String): Result<Triple<JwtHeader, C, String>> = runCatching {

0 commit comments

Comments
 (0)