RestAuth v0.9.6 RestAuth.Controller View Source

Generic controller handling login and logout.

Link to this section Summary

Functions

Call this function from your authentication controller. It will write the token to a cookie if :write_cookie is set to true in the :rest_auth configuration. Defaults to false

Call this function from your authentication controller. It will write the token to a cookie if :write_cookie is set to true in the :rest_auth configuration. Defaults to false

Link to this section Functions

Call this function from your authentication controller. It will write the token to a cookie if :write_cookie is set to true in the :rest_auth configuration. Defaults to false

def login(conn, params) do
  RestAuth.Controller.login(conn, params, write_cookie: true)
end

Call this function from your authentication controller. It will write the token to a cookie if :write_cookie is set to true in the :rest_auth configuration. Defaults to false

def logout(conn, params) do
  RestAuth.Controller.logout(conn)
end