Assent.Strategy.CallbackCSRFError exception (Assent v0.4.0)

Copy Markdown View Source

An exception for when callback CSRF validation fails.

Fields

  • :key - the callback parameter that failed validation

Examples

iex> error = Assent.Strategy.CallbackCSRFError.exception(key: "state")
iex> Exception.message(error)
"expected callback parameter `state` to match its value in session params"

Summary

Functions

Callback implementation for Exception.message/1.

Types

t()

@type t() :: %Assent.Strategy.CallbackCSRFError{__exception__: term(), key: binary()}

Functions

message(exception)

Callback implementation for Exception.message/1.