|
|
@ -15,7 +15,7 @@ function getApiBaseUrl(): string { |
|
|
* @returns Profile data or null on failure |
|
|
* @returns Profile data or null on failure |
|
|
*/ |
|
|
*/ |
|
|
export async function fetchProfileSSR( |
|
|
export async function fetchProfileSSR( |
|
|
token: string, |
|
|
|
|
|
|
|
|
token?: string | null, |
|
|
timeoutMs = 1500, |
|
|
timeoutMs = 1500, |
|
|
): Promise<any | null> { |
|
|
): Promise<any | null> { |
|
|
if (!token || token === "NO_TOKEN" || token.trim() === "") return null; |
|
|
if (!token || token === "NO_TOKEN" || token.trim() === "") return null; |
|
|
|