Add max auth age from PR #3

Had to merge master into #3 due to other changes.