Creating Offline First Native Web Applications using PouchDB and CouchDB and replication is a nice approach to remove the challenges keeping the client database insync with the server database.
One thing that always comes up is security, and security is very important and should not be taken lightly. Using implementations
like JWT or JsonWebToken and external authentication services like Auth0
and StormPath
can create a solid pattern to keep
your secrets off of your client.
Using JWT, when the user authenticates with the JWT Server, they receive a token, this token can be used to access