Refactor authentication and token handling.
This commit is contained in:
1 parent
1a8c7c42f4
commit
67732b9b5a
7 files changed
+50
-70
No files matched your search
@@ -8,7 +8,7 @@ export default async (req, res) => {
|
||||
|
||||
if (req.method === 'POST') {
|
||||
if (redis.enabled) {
|
||||
await redis.del(`auth:${getAuthToken(req)}`);
|
||||
await redis.del(getAuthToken(req));
|
||||
}
|
||||
|
||||
return ok(res);
|
||||
|
||||
Reference in new issue
Block a user