converting AuthEndpoints to Mongo collection