Added authorization workaround for pouchdb bug.