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({
|
||||||
|
|
|
@ -8,12 +8,12 @@ import type { SwSubscription } from "@/models/entities/sw-subscription.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalize object arguments from query string.
|
* Normalize object arguments from query string.
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* normalizeObjectArgs({
|
* normalizeObjectArgs({
|
||||||
* "subscription[endpoint]": "https://example.com",
|
* "subscription[endpoint]": "https://example.com",
|
||||||
* "subscription[keys][p256dh]": "key",
|
* "subscription[keys][p256dh]": "key",
|
||||||
* "subscription[keys][auth]": "auth"
|
* "subscription[keys][auth]": "auth"
|
||||||
* });
|
* });
|
||||||
* // { subscription: { endpoint: "https://example.com", keys: { p256dh: "key", auth: "auth" } } }
|
* // { subscription: { endpoint: "https://example.com", keys: { p256dh: "key", auth: "auth" } } }
|
||||||
|
|
Loading…
Reference in a new issue