UeberauthOidcc.Error (Ueberauth OIDCC v0.4.0-pre.3)
Handles errors returned from the request/callback functions.
Summary
Functions
Renders the given error as an Ueberauth.Failure.Error.t()
.
Renders the given error reason as an Ueberauth.Failure.t()
on the
Plug.Conn.t()
.
Functions
Link to this function
describe_error(reason, message_key)
@spec describe_error(reason :: term(), message_key :: binary()) :: Ueberauth.Failure.Error.t()
Renders the given error as an Ueberauth.Failure.Error.t()
.
message_key
will be used as the default message_key
if a better one is
unavailable.
Link to this function
set_described_error(conn, reason, message_key)
@spec set_described_error(Plug.Conn.t(), reason :: term(), message_key :: binary()) :: Plug.Conn.t()
Renders the given error reason as an Ueberauth.Failure.t()
on the
Plug.Conn.t()
.
message_key
will be used as the default message_key
if a better one is
unavailable.