Speakeasy v0.1.0 Speakeasy.Middleware.Authentication
Authentication middleware for Absinthe schemas or fields.
It considers the context authenticated if the user_key
is present.
Please see the README for usage.
Link to this section Summary
Functions
This is the main middleware callback
Link to this section Functions
Link to this function
call(resolution, user_key \\ :current_user)
This is the main middleware callback.
It receives an %Absinthe.Resolution{}
struct and it needs to return an
%Absinthe.Resolution{}
struct. The second argument will be whatever value
was passed to the middleware
call that setup the middleware.
Callback implementation for Absinthe.Middleware.call/2
.