I am following Josh Morony’s blog to integrate database syncing between Couchdb and Pouchdb. I managed to obtain the blog’s goal which is to create multi user and sync it to their respective database. I am using Superlogin for authentication.
Upon login, app works well. My problem is when I refresh the page, I get this ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘allDocs’ of undefined error. It seems that connection with database is reset when page refreshed. Can anyone help me?