Authentication
Functions for authenticating users with JWT cookies, controlling access to API endpoints, and managing sessions.
denyAccess
Stops execution of the current API request and returns an HTTP 401 Login Required response to the caller. Use it in #/API/ endpoints to block requests that are missing a valid request.Jwt or that lack the required role. Because hash templates are static and cached, denyAccess() belongs in API/JS files — never in .hash templates.