Add trait for token repository in MongoDB.