updating auth to use when. modifying nodebot init file to use when on auth segment.