implemented identity, updated session, added 'workings' list
added paginated querying, added 'common'
This commit is contained in:
parent
027deba422
commit
6ada519e06
36 changed files with 1422 additions and 279 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue