AuthN v0.3.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

Link to this function

authenticated?(conn)

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

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

Link to this function

current_user(conn)

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

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