File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { NextAuthAction } from "../lib/types"
9
9
10
10
export interface IncomingRequest {
11
11
/** @default "http://localhost:3000" */
12
- host ? : string
12
+ host : string
13
13
method : string
14
14
cookies ?: Record < string , any >
15
15
headers ?: Record < string , any >
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async function NextAuthNextHandler(
25
25
return res . status ( 500 ) . send ( error . message )
26
26
}
27
27
28
- const host = process . env . NEXTAUTH_URL ?? process . env . VERCEL_URL
28
+ const host = ( process . env . NEXTAUTH_URL ?? process . env . VERCEL_URL ) as string
29
29
if ( ! host ) logger . warn ( "NEXTAUTH_URL" )
30
30
31
31
const {
@@ -105,6 +105,7 @@ export async function getServerSession(
105
105
const session = await NextAuthHandler < Session | { } > ( {
106
106
options,
107
107
req : {
108
+ host : ( process . env . NEXTAUTH_URL ?? process . env . VERCEL_URL ) as string ,
108
109
action : "session" ,
109
110
method : "GET" ,
110
111
cookies : context . req . cookies ,
You can’t perform that action at this time.
0 commit comments