OAuth2 v2.0.0 OAuth2.Serializer behaviour View Source

A serializer is responsible for encoding/decoding request/response bodies.


defmodule MyApp.JSON do
  def encode!(data), do: Jason.encode!(data)
  def decode!(binary), do: Jason.decode!(binary)

Link to this section Summary

Link to this section Callbacks

Link to this callback

decode!(binary) View Source
decode!(binary()) :: map()

Link to this callback

encode!(map) View Source
encode!(map()) :: binary()