Macaroon.Serializers.JSON (macaroon v0.1.0)

Module used to encode/decode a Macaroon as a JSON string

Link to this section Summary

Link to this section Functions

Specs

Link to this function

encode(macaroon)

Specs

encode(Macaroon.Types.Macaroon.t()) ::
  {:error,
   %{
     :__exception__ => any(),
     :__struct__ => Jason.EncodeError | Protocol.UndefinedError,
     optional(atom()) => any()
   }}
  | {:ok, binary()}