do more change

This commit is contained in:
cutestnekoaqua 2023-02-11 01:08:20 +01:00
parent a6fdb28560
commit 12e1e676fa
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

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,