Skip to content

Commit 1980a66

Browse files
fix(oauth-providers): github oauth (#1372)
* fix github email request 400 code * fix github email request 400 code * add change set * ci: apply automated fixes * fix change set and format * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent ecf0746 commit 1980a66

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.changeset/gentle-bugs-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hono/oauth-providers': patch
3+
---
4+
5+
fixed github email request content-type

packages/oauth-providers/src/providers/github/authFlow.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ export class AuthFlow {
9999
headers: {
100100
Authorization: `Bearer ${this.token?.token}`,
101101
'User-Agent': userAgent,
102+
Accept: 'application/json',
103+
'Content-Type': 'application/json',
102104
},
103105
}).then((res) => res.json())) as GitHubEmailResponse[] | GitHubErrorResponse
104106

0 commit comments

Comments
 (0)