pouchdb-community / pouchdb-authentication

User authentication plugin for PouchDB and CouchDB.
Apache License 2.0
777 stars 117 forks source link

Make it available for Service Workers too #262

Closed Youhan closed 4 years ago

Youhan commented 4 years ago

I intended to use this plugin in a service worker and since it checked for PouchDB on window instance it was not available. The PouchDB instance is accessible under the service worker's ServiceWorkerGlobalScope though!

Youhan commented 4 years ago

@nolanlawson Could you take a quick look at this?

Youhan commented 4 years ago

Ah! Actually nevermind! This tries to set Cookies that are not available to ServiceWorkers!