Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
enzostvs/deepsite
abdullahalioo
/
deepsiteG
like
2
Running
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
479cdac
deepsiteG
/
middlewares
/
checkUser.js
enzostvs
HF Staff
Initial ✨
ea6c2a8
28 days ago
raw
Copy download link
history
blame
Safe
219 Bytes
export
default
async
function
checkUser
(
req, res, next
) {
const
{ hf_token } = req.
cookies
;
if
(!hf_token) {
return
res.
status
(
401
).
send
({
ok
:
false
,
message
:
"Unauthorized"
,
});
}
next
();
}