chore: code formatting

This commit is contained in:
Eana Hufwe 2024-05-27 18:00:59 +00:00
parent 1214d29302
commit e64cd1ea65
2 changed files with 5 additions and 5 deletions

View file

@ -97,7 +97,7 @@ export class AuthHelpers {
); );
const callbackUrls = app.callbackUrl?.split("\n") ?? []; const callbackUrls = app.callbackUrl?.split("\n") ?? [];
if (!callbackUrls.some(url => url.startsWith(body.redirect_uri))) if (!callbackUrls.some((url) => url.startsWith(body.redirect_uri)))
throw new MastoApiError(400, "Redirect URI not in list"); throw new MastoApiError(400, "Redirect URI not in list");
const secret = generateSecureRandomString(32); const secret = generateSecureRandomString(32);
const token = await AccessTokens.insert({ const token = await AccessTokens.insert({