AuthN v0.21.0 AuthN.HTML.AuthNHelpers View Source

Link to this section Summary

Functions

View helper allowing to check whether the current user is authenticated or not.

View helper returning the current user or nil in case the current user is not authenticated.

Link to this section Functions

Specs

authenticated?(Plug.Conn.t()) :: boolean()

View helper allowing to check whether the current user is authenticated or not.

Specs

current_user(Plug.Conn.t()) :: term() | nil

View helper returning the current user or nil in case the current user is not authenticated.