bhanuc / nanonets

Demo API server
0 stars 0 forks source link

Authentication middleware #4

Open prats226 opened 6 years ago

prats226 commented 6 years ago

How will your data model look if you use rethinkdb for authentication?

bhanuc commented 6 years ago

Not much would change, authentication-layer would be just a middleware in koa, which will check if the requests were validated before the controller layer and we can store all the user info in the user table separately.