|
|
|
|
|
by nichch
1865 days ago
|
|
You keep parroting "complexity", yet in your original argument you stated that for "sensitive" requests, you should just hit the backend anyway. So that implies that you already have a database setup and you are already using it in your app. That means there is zero extra operational or deployment complexity (compared to implementing a completely new and different bloated system.) As for development complexity? var isTokenValid = await redis.get(`k:${token}`);
if(isTokenValid != null) return next();
return res.status(401).send('Unauth.');
|
|
I don't think you've thought about the problem space enough.