pouchdb db.login is not a function : <p>Tried using these imports</p>

<pre><code>import PouchDB from 'pouchdb';
import PouchDBAuth from 'pouchdb-authentication';

PouchDB.plugin(PouchDBAuth)
</code></pre>

<p>Module ''pouchdb-authentication'' has no default export is the error generated while using these imports.</p>

<pre><code>PouchDB.plugin(require('pouchdb-authentication'));
</code></pre>

<p>Using require is removing the error but still showing db.login() is not a function.Can anyone suggest where the issue is?</p>
