Open ghost opened 7 years ago
Hi,
I am about to mock authentication via basic auth and server side sessions with json-server, which works quiet well.
Intercepting requests as documented:
server.use((req, res, next) => { next() })
Is it possible to query the DB in here somehow, so that I can check for user/pass in the DB before I continue?
Thanks!
Any idea?
I need it too ,i think it is a good idea
Hi,
I am about to mock authentication via basic auth and server side sessions with json-server, which works quiet well.
Intercepting requests as documented:
Is it possible to query the DB in here somehow, so that I can check for user/pass in the DB before I continue?
Thanks!