Copy
Ask AI
import { whopSdk } from "@/lib/whop-sdk";
const result = await whopSdk.courses.markLessonAsCompleted({
// The ID of the lesson to mark as completed
lessonId: "lesn_XXXXXXXX" /* Required! */,
});
Copy
Ask AI
const response = true;
import { whopSdk } from "@/lib/whop-sdk";
const result = await whopSdk.courses.markLessonAsCompleted({
// The ID of the lesson to mark as completed
lessonId: "lesn_XXXXXXXX" /* Required! */,
});
const response = true;