Skip to content

Commit

Permalink
fix: add a missed instance of allowInsecureRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 21, 2024
1 parent 1c9bcdd commit 6b05943
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,
}

Check warning on line 271 in packages/core/src/lib/actions/callback/oauth/callback.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/lib/actions/callback/oauth/callback.ts#L267-L271

Added lines #L267 - L271 were not covered by tests
)
profile = await userinfoResponse.json()
} else {
Expand Down

0 comments on commit 6b05943

Please sign in to comment.