ApiKeyInfoDatasource constructor

ApiKeyInfoDatasource(
  1. DbService _dbService,
  2. String encrypterSecretKey
)

Implementation

ApiKeyInfoDatasource(this._dbService, this.encrypterSecretKey) {
  _generator = ApiKeyGenerator(encrypterSecretKey: encrypterSecretKey);
  _collection =
      _dbService.mongoDbController.collection(DBCollections.apiKeys);
  _encrypter = Base64Encrypter(encrypterSecretKey);
}