AuthShield v0.0.1 AuthShield.Authentication.Plugs.AuthSession View Source
Helper plug for authenticated sessions.
Link to this section Summary
Link to this section Functions
Link to this function
current_remote_ip(conn)
View Sourcecurrent_remote_ip(Plug.Conn.t()) :: String.t() | nil
Returns the current remote_ip
Link to this function
current_session(conn)
View Sourcecurrent_session(Plug.Conn.t()) :: AuthShield.Authentication.Schemas.Session.t() | nil
Returns the current session
Link to this function
current_user_agent(conn)
View Sourcecurrent_user_agent(Plug.Conn.t()) :: [String.t()] | []
Returns the current user_agent