aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Crypto/Macaroon/Serializer/Base64.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/Macaroon/Serializer/Base64.hs')
-rw-r--r--src/Crypto/Macaroon/Serializer/Base64.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Crypto/Macaroon/Serializer/Base64.hs b/src/Crypto/Macaroon/Serializer/Base64.hs
index f6527c2..053d967 100644
--- a/src/Crypto/Macaroon/Serializer/Base64.hs
+++ b/src/Crypto/Macaroon/Serializer/Base64.hs
@@ -55,6 +55,7 @@ packetize key dat = do
55 putByteString dat 55 putByteString dat
56 putByteString "\n" 56 putByteString "\n"
57 57
58-- | Deserialize a macaroon from a base64url-encoded ByteString
58deserialize :: BS.ByteString -> Either String Macaroon 59deserialize :: BS.ByteString -> Either String Macaroon
59deserialize = parseOnly macaroon . B64.decodeLenient 60deserialize = parseOnly macaroon . B64.decodeLenient
60 61