implemented identity, updated session, added 'workings' list

added paginated querying, added 'common'
This commit is contained in:
lnn0q 2025-05-17 00:29:55 +03:00
parent 027deba422
commit 6ada519e06
36 changed files with 1422 additions and 279 deletions

View file

@ -1,16 +1,17 @@
import { Session } from '@generated/types';
import 'dotenv/config';
import { Request, Response } from 'express';
import { GraphQLError } from 'graphql';
import jwt from 'jsonwebtoken';
import { config } from './main';
import { prisma } from './prisma/client';
import { GraphQLError } from 'graphql';
export interface IdentityContext {
req: Request;
res: Response;
identity?: {
id: string;
email: string;
username: string;
};
}