fix middle v102
This commit is contained in:
@@ -4,6 +4,9 @@ export async function GET(req: Request) {
|
||||
const auth = req.headers.get("Authorization");
|
||||
const token = auth?.split(" ")[1];
|
||||
|
||||
console.log("Token received in API Validation:", token , `<<<<<<<<<<<<<<<`);
|
||||
console.log("Authorization header:", auth, `<--------`);
|
||||
|
||||
if (!token) return NextResponse.json({ success: false }, { status: 401 });
|
||||
|
||||
return NextResponse.json({ success: true });
|
||||
|
||||
Reference in New Issue
Block a user