Skip to content

Commit

Permalink
fix: add a missed instance of allowInsecureRequests (#12276)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored Nov 21, 2024
1 parent 74715e9 commit 802e317
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/lib/actions/callback/oauth/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ export async function handleOAuth(
as,
client,
processedCodeResponse.access_token,
{ [o.customFetch]: provider[customFetch] }
{
[o.customFetch]: provider[customFetch],
// TODO: move away from allowing insecure HTTP requests
[o.allowInsecureRequests]: true,
}
)
profile = await userinfoResponse.json()
} else {
Expand Down

0 comments on commit 802e317

Please sign in to comment.