Spaces:
Running
Running
check headers
Browse files- app/api/auth/route.ts +1 -0
app/api/auth/route.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { NextRequest, NextResponse } from "next/server";
|
|
| 2 |
|
| 3 |
export async function GET(req: NextRequest) {
|
| 4 |
const host = req.headers.get("host") ?? "localhost:3000";
|
|
|
|
| 5 |
|
| 6 |
const redirect_uri =
|
| 7 |
`${host.includes("localhost") ? "http://" : "https://"}` +
|
|
|
|
| 2 |
|
| 3 |
export async function GET(req: NextRequest) {
|
| 4 |
const host = req.headers.get("host") ?? "localhost:3000";
|
| 5 |
+
console.log(req.headers);
|
| 6 |
|
| 7 |
const redirect_uri =
|
| 8 |
`${host.includes("localhost") ? "http://" : "https://"}` +
|