We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d17bfc commit de47d23Copy full SHA for de47d23
api/token.js
@@ -4,7 +4,8 @@ export default async (req, res) => {
4
const r = await fetch("https://github.com/login/oauth/access_token", {
5
method: "POST",
6
headers: {
7
- "Content-Type": "application/json"
+ "Content-Type": "application/json",
8
+ accept: "application/json" // Return JSON
9
},
10
body: JSON.stringify({
11
...req.body,
0 commit comments