apps: add comments

This commit is contained in:
Alex Gleason 2023-04-10 21:13:57 -05:00
parent 53655f99bf
commit 4664609047
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 6 additions and 2 deletions

View File

@ -1,12 +1,16 @@
import type { Context } from '@/deps.ts';
/**
* Apps are unnecessary cruft in Mastodon API, but necessary to make clients work.
* So when clients try to "create" an app, pretend they did and return a hardcoded app.
*/
const FAKE_APP = {
id: '1',
name: 'Ditto',
website: null,
redirect_uri: 'urn:ietf:wg:oauth:2.0:oob',
client_id: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
client_secret: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
client_id: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', // he cry
client_secret: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', // 😱 😱 😱
vapid_key: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
};