updated cookie auth dependency