File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const rootAuthLoader: RootAuthLoader = async (
41
41
42
42
if ( ! handler ) {
43
43
// if the user did not provide a handler, simply inject requestState into an empty response
44
- return injectRequestStateIntoResponse ( new Response ( ) , requestState ) ;
44
+ return injectRequestStateIntoResponse ( new Response ( JSON . stringify ( { } ) ) , requestState ) ;
45
45
}
46
46
47
47
const handlerResult = await handler ( injectAuthIntoRequest ( args , sanitizeAuthObject ( requestState . toAuth ( ) ) ) ) ;
@@ -62,5 +62,5 @@ export const rootAuthLoader: RootAuthLoader = async (
62
62
}
63
63
64
64
// if the user returned a plain object, simply inject requestState into an empty response
65
- return injectRequestStateIntoResponse ( new Response ( ) , requestState ) ;
65
+ return injectRequestStateIntoResponse ( new Response ( JSON . stringify ( { } ) ) , requestState ) ;
66
66
} ;
You can’t perform that action at this time.
0 commit comments