Skip to content

Commit f1bf7ae

Browse files
woofersndom91
andauthored
fix(core): Ensure oauth4webapi uses a stable customFetch API (#10978)
Co-authored-by: Nico Domino <[email protected]>
1 parent 16f5274 commit f1bf7ae

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@types/cookie": "0.6.0",
6767
"cookie": "0.6.0",
6868
"jose": "^5.1.3",
69-
"oauth4webapi": "^2.4.0",
69+
"oauth4webapi": "^2.9.0",
7070
"preact": "10.11.3",
7171
"preact-render-to-string": "5.2.3"
7272
},

packages/core/src/lib/actions/callback/oauth/callback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function handleOAuth(
111111
redirect_uri,
112112
codeVerifier ?? "auth", // TODO: review fallback code verifier,
113113
{
114-
[o.experimental_customFetch]: (...args) => {
114+
[o.customFetch]: (...args) => {
115115
if (
116116
!provider.checks.includes("pkce") &&
117117
args[1]?.body instanceof URLSearchParams

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)