a module providing interception of 401 errors to allow users to re-authentitace on the fly