|
|
|
|
|
by lukevp
2198 days ago
|
|
We really shouldn't be writing our own authentication layers (or anything security-related for that matter) unless necessary. Case in point, this example code has a massive security issue that allows anyone to impersonate without tokens if there is an active authentication request open. Hopefully no one has used this example code to build a production system that has real user data. This is a perfect example of why this should really be part of CouchDB/PouchDB itself and not something each person must write themselves. This should be solved once, solved right, vetted by the community, and be easy to fall into a pit of success. I really like CouchDB and PouchDB as a product, but this insistence that this is the right path is really holding you guys back. |
|