Skip to content

Commit

Permalink
fix(core): Ensure oauth4webapi uses a stable customFetch API (#10978)
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Domino <yo@ndo.dev>
  • Loading branch information
woofers and ndom91 authored Jun 1, 2024
1 parent 16f5274 commit f1bf7ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@types/cookie": "0.6.0",
"cookie": "0.6.0",
"jose": "^5.1.3",
"oauth4webapi": "^2.4.0",
"oauth4webapi": "^2.9.0",
"preact": "10.11.3",
"preact-render-to-string": "5.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/actions/callback/oauth/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function handleOAuth(
redirect_uri,
codeVerifier ?? "auth", // TODO: review fallback code verifier,
{
[o.experimental_customFetch]: (...args) => {
[o.customFetch]: (...args) => {
if (
!provider.checks.includes("pkce") &&
args[1]?.body instanceof URLSearchParams
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1bf7ae

Please sign in to comment.