mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[mastodon-client] Add additional fields to /v1/apps response
This is undocumented under https://docs.joinmastodon.org/entities/Application/ but some apps expect it anyway.
This commit is contained in:
parent
c46ea29ba3
commit
7b951f76ed
@ -4,8 +4,10 @@
|
||||
**/
|
||||
namespace OAuth {
|
||||
export type Application = {
|
||||
id: string;
|
||||
name: string;
|
||||
website: string | null;
|
||||
redirect_uri: string;
|
||||
vapid_key: string | undefined;
|
||||
client_id: string;
|
||||
client_secret: string;
|
||||
|
@ -37,11 +37,13 @@ export class AuthHelpers {
|
||||
}).then((x) => OAuthApps.findOneByOrFail(x.identifiers[0]));
|
||||
|
||||
return {
|
||||
id: app.id,
|
||||
name: app.name,
|
||||
website: website,
|
||||
website: app.website,
|
||||
redirect_uri: app.redirectUris.join('\n'),
|
||||
client_id: app.clientId,
|
||||
client_secret: app.clientSecret,
|
||||
vapid_key: await fetchMeta().then(meta => meta.swPublicKey ?? undefined),
|
||||
vapid_key: await fetchMeta().then(meta => meta.swPublicKey),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user