okay this should be it
This commit is contained in:
parent
d332602725
commit
eaa2d29aff
1 changed files with 5 additions and 1 deletions
|
@ -31,5 +31,9 @@ export default async function (req: Request): Promise<Response> {
|
|||
|
||||
const { access_token } = (await response.json()) as TokenResponse;
|
||||
|
||||
return new Response(access_token);
|
||||
return new Response(JSON.stringify({ access_token }), {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue