diff --git a/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlStrings.scala b/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlStrings.scala index 16c6b8c021..97a49e2005 100644 --- a/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlStrings.scala +++ b/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlStrings.scala @@ -15,6 +15,7 @@ object Base64UrlStrings { } extension (s: Base64UrlString) { + def toStringNoPadding: String = s.takeWhile(_ != '=') def toByteArray: Array[Byte] = Base64Utils.decodeURL(s) def toString: String = s }