Current section

Files

Jump to
indieweb lib indieweb auth adapter token.ex
Raw

lib/indieweb/auth/adapter/token.ex

defmodule IndieWeb.Auth.TokenAdapter do
@moduledoc "Provides an abstraction regarding code actions for IndieAuth."
@callback generate(client_id :: binary(), scope :: binary(), options :: keyword()) :: binary()
@callback info(token :: binary(), options :: keyword()) :: nil | {:error, any()} | map()
@callback delete(token :: binary(), options :: keyword()) :: :ok
end