Spaces:
Running
Running
remove unused logs
Browse files- app/api/auth/route.ts +1 -6
app/api/auth/route.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
| 1 |
import { NextRequest, NextResponse } from "next/server";
|
| 2 |
|
| 3 |
export async function GET(req: NextRequest) {
|
| 4 |
-
const host =
|
| 5 |
-
req.headers.get("host") ?? req.headers.get("origin") ?? "localhost:3000";
|
| 6 |
-
|
| 7 |
-
console.log("Host:", req.headers.get("host"));
|
| 8 |
-
console.log("Origin:", req.headers.get("x-forwarded-host"));
|
| 9 |
|
| 10 |
-
// get the domain from the request headers
|
| 11 |
const redirect_uri =
|
| 12 |
`${host.includes("localhost") ? "http://" : "https://"}` +
|
| 13 |
host +
|
|
|
|
| 1 |
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://"}` +
|
| 8 |
host +
|