Add back null check for authSecret