chore: code formatting
This commit is contained in:
parent
1214d29302
commit
e64cd1ea65
2 changed files with 5 additions and 5 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue