login logic fix

This commit is contained in:
2025-09-08 18:49:58 +00:00
parent a93493fb62
commit 0cce0322a1
5 changed files with 133 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ import { randomBytes } from 'crypto';
export async function GET(request: Request) {
const session = await auth();
if (!session) {
console.log(session)
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
}
try {