feat: Introduce multi-tenancy support with organization-specific data, add interactive transcript functionality, and enhance lesson/course schemas.

This commit is contained in:
2026-01-15 18:02:04 -03:00
parent daeda7e905
commit 663950aa0e
26 changed files with 933 additions and 302 deletions
+2 -1
View File
@@ -96,6 +96,7 @@ export interface User {
email: string;
full_name: string;
role: string;
organization_id: string;
xp?: number;
level?: number;
}
@@ -127,7 +128,7 @@ export interface Module {
lessons: Lesson[];
}
const getToken = () => typeof window !== 'undefined' ? localStorage.getItem('token') : null;
const getToken = () => typeof window !== 'undefined' ? localStorage.getItem('experience_token') : null;
const apiFetch = async (url: string, options: RequestInit = {}, isCMS: boolean = false) => {
const token = getToken();