import { User } from "@/types"; import { NextResponse } from "next/server"; // Define the structure of our mock user type UserResponse = User & { token: string }; export const isAuthenticated = async (): Promise | undefined> => { // Create a mock user object that will be returned for every request. // This bypasses the need for actual authentication. const mockUser: UserResponse = { id: "mock_user_123", // A fake user ID name: "RaBU-User", // A default username fullname: "RaBU-2 User", // A default full name avatarUrl: "/default-avatar.png", // A path to a default avatar if you have one isPro: false, // Add the missing 'isPro' property token: "mock_token_abcdef123456" // A fake token }; // Always return the mock user, effectively making every request "authenticated". return Promise.resolve(mockUser); };