fix(auth): send login token in POST body

This commit is contained in:
Orvanix
2026-03-12 17:15:07 +00:00
parent b20673e7ea
commit 81712ad3ce
4 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ import crypto from 'crypto';
const logger = RMABLogger.create('API.Auth.TokenLogin');
export async function GET(request: NextRequest) {
export async function POST(request: NextRequest) {
try {
const token = request.nextUrl.searchParams.get('token');
const { token } = await request.json();
if (!token) {
return NextResponse.json({ error: 'Missing token parameter' }, { status: 400 });