File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export async function serverAuth({ options }: {
14
14
} ) ,
15
15
'const betterAuthConfigs = mergeDeep({all: true})({},' ,
16
16
'{' ,
17
- ...options . moduleOptions . options . server
17
+ ...options . moduleOptions ? .options ? .server
18
18
? Object . entries ( options . moduleOptions . options . server ) . map ( ( [ key , value ] ) => {
19
19
return ` ${ key } : ${ JSON . stringify ( value ) } ,`
20
20
} )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function useUserSession({ options }: {
24
24
'' ,
25
25
' const authClient = createAuthClient({' ,
26
26
' baseURL: url.origin,' ,
27
- ...options . moduleOptions . options . client
27
+ ...options . moduleOptions ? .options ? .client
28
28
? Object . entries ( options . moduleOptions . options . client ) . map ( ( [ key , value ] ) => {
29
29
return ` ${ key } : ${ JSON . stringify ( value ) } ,`
30
30
} )
You can’t perform that action at this time.
0 commit comments