Updated auth.once filter for better error handling.