do more change

This commit is contained in:
cutestnekoaqua 2023-02-11 01:08:20 +01:00
parent ecc0397dd3
commit 10f5d49fc6

View File

@ -163,7 +163,7 @@ mastoRouter.post("/oauth/token", async (ctx) => {
const atData = await client.fetchAccessToken(
null,
body.client_secret,
m[0],
m ? m[0] : null,
);
ctx.body = {
access_token: atData.accessToken,