Updates to the code review; handling of refresh token errors; significantly expanded test coverage.