import "dotenv/config";
import { clerkClient } from "@clerk/nextjs/server";
import { createClient } from "@supabase/supabase-js";

async function main() {
    const clerk = clerkClient();
    const users = await clerk.users.getUserList({ query: "student1" });
    const user = users.data[0];
    
    // We can't generate a true template JWT from backend clerkClient easily.
    // However, we can use clerkClient to check the user's publicMetadata.
    console.log("publicMetadata:", user.publicMetadata);
}
main();
