Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Greff3
/
deepsite
like
38
Running
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
8957bfe
deepsite
/
middlewares
/
checkUser.js
enzostvs
HF Staff
Initial ✨
ea6c2a8
about 1 year 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
();
}