News for hackers. Stuff that matters.
Re:PouchDB: The Database That Syncs by bluesnews on Saturday November 02, 2024 @03:27PM (#42028604)
How does this deal with auth for the backend db when running in the browser?
Re:PouchDB: The Database That Syncs by xrd on Saturday November 02, 2024 @03:51PM (#42028795)
You can offload authentication to another server and then just use the jwt. Jwt are great in that you can read them transparently and guarantee that they were signed by whatever you trust. It's a bit roll your own but it works well and is very flexible.
Re:PouchDB: The Database That Syncs by brailsafe on Saturday November 02, 2024 @05:11PM (#42029254)
Wouldn't it be the same as any other single page application?
Re:PouchDB: The Database That Syncs by xyzzy4747 on Saturday November 02, 2024 @06:15PM (#42029598)
CouchDB/PouchDB has very clunky auth so IMO it's better to roll your own auth and either use a reverse proxy with a JWT or else hide the DB behind an API service.