added comments
This commit is contained in:
@ -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") {
|
||||
|
Reference in New Issue
Block a user