code: function NedbStore(datastore, documentsName) {
      if(arguments.length === 0 || typeof datastore !== 'object')  {
          throw new Error('Valid datastore parameter have to be provided')
      }
      if (arguments[1]) {
          if (typeof arguments[1] !== 'string') {
              throw new Error('documentsName must be a valid string')
          }
      }
  
      TokenStore.call(this)
  
      this._documentsName = documentsName || 'passwordless-token'
  
      this._db = datastore
  }
docs: Constructor of NedbStore
  @param {Object} [datastore] the data storage declared upon creation/loading
  as defined by the NeDB specification. Please check the documentation for
  details: https://github.com/louischatriot/nedb
  @param {String} [documentsName] A valid string identifier. All created
  documents within database has value { _lib: passwordless-token } as the
  default reference, this will override the default name. Usefull for easy
  indexing and search when you want to integrate the database with other
  documents as well
  @constructor