added comments

This commit is contained in:
Polaris
2024-07-23 17:34:48 -04:00
parent fbf5033b36
commit 44717ca3a9

View File

@ -7,10 +7,9 @@ import { randomBytes } from "crypto";
import { redirect } from "next/navigation";
export async function generateShareToken(id: number): Promise<{
token?: string; // share token
id?: string; // playlog id after the token
error?: string; // error
}> {
token?: string;
id?: string;
error?: string;
const { user } = await getAuth();
if (!user || !user.id || typeof user.id !== "string") {