diff options
Diffstat (limited to 'src/Crypto/Macaroon/Serializer/Base64.hs')
-rw-r--r-- | src/Crypto/Macaroon/Serializer/Base64.hs | 1 |
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 | ||
58 | deserialize :: BS.ByteString -> Either String Macaroon | 59 | deserialize :: BS.ByteString -> Either String Macaroon |
59 | deserialize = parseOnly macaroon . B64.decodeLenient | 60 | deserialize = parseOnly macaroon . B64.decodeLenient |
60 | 61 | ||