@auth/core
Advanced tools
Comparing version 0.0.0-159ab8c31 to 0.0.0-fbf6d5992
@@ -16,4 +16,4 @@ import { handleLogin } from "../callback-handler.js"; | ||
let randomState; | ||
if (provider.redirectProxy) { | ||
const state = decodeState(query?.state); | ||
if (provider.redirectProxy && query?.state) { | ||
const state = decodeState(query.state); | ||
randomState = state?.random; | ||
@@ -20,0 +20,0 @@ // TODO: verify that redirect is safe |
@@ -70,3 +70,3 @@ import { parse as parseCookie, serialize } from "cookie"; | ||
headers.set("Set-Cookie", cookieHeader); | ||
headers.set("Set-Cookie", cookieHeader); // TODO: Remove. Seems to be a bug with Headers in the runtime | ||
// headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime | ||
}); | ||
@@ -73,0 +73,0 @@ let body = res.body; |
{ | ||
"name": "@auth/core", | ||
"version": "0.0.0-159ab8c31", | ||
"version": "0.0.0-fbf6d5992", | ||
"description": "Authentication for the Web.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -49,5 +49,5 @@ import { handleLogin } from "../callback-handler.js" | ||
if (provider.redirectProxy) { | ||
if (provider.redirectProxy && query?.state) { | ||
const state = decodeState<{ origin: string; random: string }>( | ||
query?.state | ||
query.state | ||
) | ||
@@ -54,0 +54,0 @@ |
@@ -81,3 +81,3 @@ import { parse as parseCookie, serialize } from "cookie" | ||
else headers.set("Set-Cookie", cookieHeader) | ||
headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime | ||
// headers.set("Set-Cookie", cookieHeader) // TODO: Remove. Seems to be a bug with Headers in the runtime | ||
}) | ||
@@ -84,0 +84,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
789739