diff --git a/backend/src/Squidex.Domain.Users.MongoDb/Infrastructure/MongoPersistedGrantStore.cs b/backend/src/Squidex.Domain.Users.MongoDb/Infrastructure/MongoPersistedGrantStore.cs index 68830619f..8c9dbd6e9 100644 --- a/backend/src/Squidex.Domain.Users.MongoDb/Infrastructure/MongoPersistedGrantStore.cs +++ b/backend/src/Squidex.Domain.Users.MongoDb/Infrastructure/MongoPersistedGrantStore.cs @@ -10,9 +10,7 @@ using System.Threading; using System.Threading.Tasks; using IdentityServer4.Models; using IdentityServer4.Stores; -using MongoDB.Bson; using MongoDB.Bson.Serialization; -using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver; using Squidex.Infrastructure.MongoDb; @@ -26,7 +24,7 @@ namespace Squidex.Domain.Users.MongoDb.Infrastructure { cm.AutoMap(); - cm.MapIdProperty(x => x.Key).SetSerializer(new StringSerializer(BsonType.ObjectId)); + cm.MapIdProperty(x => x.Key); }); }