Add maxSize constraint on serialized authentication