mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix server auth middleware
This commit is contained in:
parent
10f1d8f110
commit
25100c347a
@ -40,6 +40,12 @@ export default async (req, res, next) => {
|
||||
return reject("Missmatching server token")
|
||||
}
|
||||
|
||||
req.user = {
|
||||
__server: true,
|
||||
_id: client_id,
|
||||
roles: ["server"],
|
||||
}
|
||||
|
||||
return next()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user