Completed Admin Users form
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ExtendedError, Server, Socket } from "socket.io";
|
||||
import { prisma } from "@repo/db";
|
||||
if (!process.env.DISPATCH_APP_TOKEN) throw new Error("DISPATCH_APP_TOKEN is not defined");
|
||||
import jwt from "jsonwebtoken";
|
||||
/* if (!process.env.DISPATCH_APP_TOKEN) throw new Error("DISPATCH_APP_TOKEN is not defined"); */
|
||||
|
||||
export const jwtMiddleware = async (socket: Socket, next: (err?: ExtendedError) => void) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user