[HN Gopher] PouchDB: The Database That Syncs
___________________________________________________________________
PouchDB: The Database That Syncs
Author : thunderbong
Score : 12 points
Date : 2024-11-02 12:52 UTC (10 hours ago)
(HTM) web link (pouchdb.com)
(TXT) w3m dump (pouchdb.com)
| bluesnews wrote:
| How does this deal with auth for the backend db when running in
| the browser?
| xrd wrote:
| 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.
| brailsafe wrote:
| Wouldn't it be the same as any other single page application?
| xyzzy4747 wrote:
| 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.
___________________________________________________________________
(page generated 2024-11-02 23:01 UTC)