Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion advanced/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as jwt from 'jsonwebtoken'
import { Prisma } from './generated/prisma-client'
import { Request } from "express";

export interface Context {
prisma: Prisma
request: any
request: Request
}

export function getUserId(ctx: Context) {
Expand Down