치지직 앱으로 연동하고, 연동 확인된 ID만 접속할 수 있도록 수정, 개발용으로는 채널ID를 수동으로 접속할 수 있도록 변경.

최초 추천 고정 배치 추가.
This commit is contained in:
kimyu
2026-09-18 04:09:31 +09:00
parent 6f72824598
commit 73520f9f06
26 changed files with 1272 additions and 162 deletions

View File

@@ -0,0 +1,16 @@
import { NextResponse } from 'next/server';
import { AUTH_COOKIE } from '@/lib/auth/session';
export const runtime = 'nodejs';
export async function POST() {
const res = NextResponse.json({ ok: true });
res.cookies.set(AUTH_COOKIE, '', {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'lax',
path: '/',
maxAge: 0,
});
return res;
}

View File

@@ -0,0 +1,19 @@
import { NextResponse } from 'next/server';
import { authModePublic } from '@/lib/auth/room-access';
import { readAuthSession } from '@/lib/auth/session';
export const runtime = 'nodejs';
export async function GET() {
const session = await readAuthSession();
return NextResponse.json({
...authModePublic(),
session: session
? {
channelId: session.channelId,
channelName: session.channelName,
exp: session.exp,
}
: null,
});
}