implemented session

This commit is contained in:
lnn0q 2025-03-30 20:35:24 +03:00
parent b6b7cea210
commit d179b8c7c8
9 changed files with 700 additions and 783 deletions

View file

@ -19,5 +19,6 @@ export async function BooksManyResolver(
__: any,
{ identity }: IdentityContext
): Promise<Book[]> {
if (identity == null) throw Error('Unauthorized');
return books;
}