Add decorator for methods that require authentication.