Add debug log to refresh route for troubleshooting

Co-authored-by: dallin <dallin@buster.so>
This commit is contained in:
Cursor Agent 2025-06-30 23:53:18 +00:00
parent 6d90f585cf
commit b82541c560
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import { type NextRequest, NextResponse } from 'next/server';
import { getSupabaseUserContext } from '@/lib/supabase'; import { getSupabaseUserContext } from '@/lib/supabase';
export async function POST(request: NextRequest) { export async function POST(request: NextRequest) {
console.log('hello world');
// Parse the request body to get minutesUntilExpiration // Parse the request body to get minutesUntilExpiration
const body = await request.json().catch(() => ({})); const body = await request.json().catch(() => ({}));
const preemptiveRefreshMinutes = (body.preemptiveRefreshMinutes || 5) as number; const preemptiveRefreshMinutes = (body.preemptiveRefreshMinutes || 5) as number;