appy-one / acebase

A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications
MIT License
491 stars 27 forks source link

Request: Example or test file of using acebase with username + salt + hash? #60

Closed qpwo closed 2 years ago

qpwo commented 2 years ago

I think I know how to store the passwords but a good example would put me at ease. I searched password, salt, & hash in the repo and couldn't find anything.

Here's an example typescript/express/node auth server without the db, if that helps: https://gist.github.com/qpwo/4b2ae3aaaf222d099b34898152118c43

Or if you don't have time yourself I could PR a new test case

appy-one commented 2 years ago

You don't have to store passwords or salts or hashes anywhere in your database. You are probably searching for the auth functionality built into AcebaseServer and AceBaseClient. User management is all built into the client and server code, you won't have to worry about authentication!

qpwo commented 2 years ago

Holy crap how did i miss that. Acebase really has the best of everything