mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 15:50:38 +08:00
Update auth.ts
This commit is contained in:
parent
636e39d366
commit
52ac132328
@ -104,7 +104,7 @@ export async function supaAuthenticateUser(
|
||||
status?: number;
|
||||
plan?: PlanType;
|
||||
}> {
|
||||
console.log(req.headers);
|
||||
|
||||
const authHeader = req.headers.authorization ?? (req.headers["sec-websocket-protocol"] ? `Bearer ${req.headers["sec-websocket-protocol"]}` : null);
|
||||
if (!authHeader) {
|
||||
return { success: false, error: "Unauthorized", status: 401 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user