Lanyards is a dedicated profile for researchers, built on the AT Protocol.
at main 15 lines 377 B view raw
1import { NextResponse } from 'next/server'; 2import { deleteSession } from '@/lib/auth/session'; 3 4export async function POST() { 5 try { 6 await deleteSession(); 7 return NextResponse.json({ success: true }); 8 } catch (error) { 9 console.error('Logout error:', error); 10 return NextResponse.json( 11 { error: 'Failed to logout' }, 12 { status: 500 } 13 ); 14 } 15}