Module auth

Module auth 

Source

Functions§

check_admin_exists
Checks if any administrator user exists in the system.
create_user
Registers a new user in the system.
delete_user
Deletes a user account from the system.
filter_user
Converts a User with sensitive data into a FilteredUser safe for API responses.
get_current_user
Retrieves the currently authenticated user’s information.
get_user_by_id
Retrieves a single user’s details by their ID.
get_users
Retrieves all users in the system.
login
Authenticates a user and creates a JWT token for session management.
logout
Logs out the current user by invalidating their session cookie.
setup_initial_admin
Creates the initial administrator account for a fresh system.
update_user
Updates an existing user’s information.