HubIdentityElixir.Authentication (HubIdentityElixir v0.1.2) View Source

Link to this section Summary

Functions

Logs the user out.

Used for routes that require the user to be authenticated.

Link to this section Functions

Link to this function

fetch_current_user(conn, opts)

View Source
Link to this function

log_in_user(conn, current_user)

View Source

Logs the user out.

It clears all session data for safety. See renew_session.

Link to this function

require_authenticated_user(conn, opts)

View Source

Used for routes that require the user to be authenticated.

If you want to enforce the user email is confirmed before they use the application at all, here would be a good place.