Pairing code auth, replace Facebook OAuth, public feed

- Add PairingCode model, POST /generate + /redeem + GET /status endpoints
- Remove facebookId from User, make metaId non-nullable
- Delete meta-web routes, link routes, meta-web-auth service
- Remove metaWeb config block and hasFacebookLink from responses
- Add optionalAuth middleware, make feed publicly accessible
- Resolve Twitch channel names for embed broadcastIds
This commit is contained in:
2026-03-02 23:07:24 +01:00
parent 7ce1c2a8bc
commit ed83c651d8
12 changed files with 417 additions and 338 deletions

View File

@@ -22,8 +22,6 @@ export interface UserProfileResponse {
avatarUrl: string | null;
bio: string;
isPublic: boolean;
hasQuestLink: boolean;
hasFacebookLink: boolean;
}
export interface UpdateProfileBody {
@@ -32,19 +30,13 @@ export interface UpdateProfileBody {
isPublic?: boolean;
}
export interface MetaWebCallbackBody {
export interface PairingGenerateResponse {
code: string;
state: string;
expiresAt: string;
}
export interface LinkQuestBody {
metaId: string;
nonce?: string;
}
export interface LinkFacebookBody {
export interface PairingRedeemBody {
code: string;
state: string;
}
// ── Providers ────────────────────────────────────────────