malaleche
01/25/2022, 10:03 AMsilentworks
01/25/2022, 11:23 AMsilentworks
01/25/2022, 11:23 AMmalaleche
01/25/2022, 11:24 AMmalaleche
01/25/2022, 11:24 AMsilentworks
01/25/2022, 11:24 AMmalaleche
01/25/2022, 11:26 AMmalaleche
01/25/2022, 11:26 AMsilentworks
01/25/2022, 11:27 AMmalaleche
01/25/2022, 11:38 AMsilentworks
01/25/2022, 11:41 AMsilentworks
01/25/2022, 11:41 AMmalaleche
01/25/2022, 11:46 AMsilentworks
01/25/2022, 11:48 AMmalaleche
01/25/2022, 12:06 PMmalaleche
01/25/2022, 12:16 PMsilentworks
01/25/2022, 12:47 PMmalaleche
01/25/2022, 12:51 PMmalaleche
01/25/2022, 12:51 PMmalaleche
01/25/2022, 12:51 PMmalaleche
01/25/2022, 12:52 PMmalaleche
01/25/2022, 12:52 PMmalaleche
01/25/2022, 12:54 PMmalaleche
01/25/2022, 12:59 PMsilentworks
01/25/2022, 1:08 PMsilentworks
01/25/2022, 1:27 PMjs
const reqBody = await request.json()
supabase.auth.api.setAuthCookie(
{ ...request, body: reqBody, headers: { host: request.headers.get('host') } },
toExpressResponse(response)
)
silentworks
01/25/2022, 1:28 PMmalaleche
01/25/2022, 1:53 PMmalaleche
01/25/2022, 1:53 PMmalaleche
01/25/2022, 1:53 PMsilentworks
01/25/2022, 2:07 PMsilentworks
01/25/2022, 2:08 PMresponse = toSvelteKitResponse(response)
and that resolves itmalaleche
01/25/2022, 2:08 PMmalaleche
01/25/2022, 2:08 PMsilentworks
01/25/2022, 2:08 PMmalaleche
01/25/2022, 2:09 PMsilentworks
01/25/2022, 2:09 PMsilentworks
01/25/2022, 2:10 PMsetAuthCookie
is missing something in the request we are sending to itmalaleche
01/25/2022, 2:12 PMmalaleche
01/25/2022, 2:12 PMmalaleche
01/25/2022, 2:12 PMsilentworks
01/25/2022, 2:14 PMsilentworks
01/25/2022, 2:16 PMbody
in it as SvelteKit is now using the native Request body and you need to do await request.json()
in order to get the json version of that body else its just a readstreammalaleche
01/25/2022, 3:09 PMsilentworks
01/25/2022, 6:36 PMmalaleche
01/25/2022, 7:26 PMmalaleche
01/25/2022, 7:27 PMmalaleche
01/25/2022, 7:27 PMmalaleche
01/25/2022, 7:27 PMmalaleche
01/25/2022, 7:27 PMsilentworks
01/26/2022, 11:46 AMmalaleche
01/26/2022, 11:10 PMmalaleche
01/26/2022, 11:10 PMsilentworks
01/27/2022, 12:42 PMsilentworks
01/28/2022, 5:12 PMsilentworks
01/29/2022, 12:57 PM