Add auth to credentials serialization.