@auth/core
Advanced tools
Comparing version 0.0.0-380f8d56 to 0.0.0-40f6bf81
@@ -79,2 +79,4 @@ import * as checks from "./checks.js"; | ||
} | ||
//TODO: remove | ||
logger.debug("Code grant response", await codeGrantResponse.clone().json()); | ||
profile = o.getValidatedIdTokenClaims(result); | ||
@@ -81,0 +83,0 @@ tokens = result; |
@@ -9,4 +9,7 @@ import type { OAuthConfigInternal } from "../../providers/oauth.js"; | ||
randomState: string | undefined; | ||
proxyRedirect?: undefined; | ||
} | { | ||
randomState: string | undefined; | ||
proxyRedirect: string | undefined; | ||
}; | ||
//# sourceMappingURL=proxy-redirect.d.ts.map |
@@ -17,3 +17,3 @@ import { InvalidCheck } from "../../errors.js"; | ||
if (!state?.origin) | ||
throw new InvalidCheck("Missing origin in state"); | ||
return { randomState }; | ||
proxyRedirect = `${state.origin}?${new URLSearchParams(query)}`; | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "@auth/core", | ||
"version": "0.0.0-380f8d56", | ||
"version": "0.0.0-40f6bf81", | ||
"description": "Authentication for the Web.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -141,2 +141,5 @@ import * as checks from "./checks.js" | ||
//TODO: remove | ||
logger.debug("Code grant response", await codeGrantResponse.clone().json()) | ||
profile = o.getValidatedIdTokenClaims(result) | ||
@@ -143,0 +146,0 @@ tokens = result |
@@ -28,3 +28,3 @@ import { InvalidCheck } from "../../errors.js" | ||
if (isOnRedirectProxy) { | ||
if (!state?.origin) throw new InvalidCheck("Missing origin in state") | ||
if (!state?.origin) return { randomState } | ||
proxyRedirect = `${state.origin}?${new URLSearchParams(query)}` | ||
@@ -31,0 +31,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
789876
19851