AbsinthePermission.MissingContextError exception (AbsinthePermission v1.0.0)

Copy Markdown View Source

Raised at request time when the Absinthe context lacks the keys AbsinthePermission requires (:current_user, :permissions).

This is the fail-loud alternative to silently allowing operations for unauthenticated requests. Configure :on_missing_context in use AbsinthePermission to change behaviour.

Summary

Types

t()

@type t() :: %AbsinthePermission.MissingContextError{
  __exception__: true,
  message: binary(),
  missing_keys: [atom()]
}