Change maxAuthAge to Duration type and convert to seconds