AuthShield v0.0.1 AuthShield.Authentication.Plugs.AuthSession View Source

Helper plug for authenticated sessions.

Link to this section Summary

Functions

Returns the current remote_ip

Returns the current session

Returns the current user_agent

Link to this section Functions

Link to this function

current_remote_ip(conn)

View Source
current_remote_ip(Plug.Conn.t()) :: String.t() | nil

Returns the current remote_ip

Returns the current session

Link to this function

current_user_agent(conn)

View Source
current_user_agent(Plug.Conn.t()) :: [String.t()] | []

Returns the current user_agent