Skip to content

Commit

Permalink
feat(shared): add base64 helper function (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
patlo-iog authored Nov 21, 2022
1 parent f3102e8 commit 70555c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 70555c9

Please sign in to comment.