[BREAKING CHANGE] Improve security
This commit is contained in:
parent
86548f6468
commit
9458245382
5 changed files with 19 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv
|
|||
});
|
||||
} else {
|
||||
const userkeyDoc = await Userkey.findOne({
|
||||
key: token
|
||||
hash: token
|
||||
});
|
||||
|
||||
if (userkeyDoc === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue