allow for build because of jsonwebtoken quirk

This commit is contained in:
2023-07-18 14:28:39 +02:00
parent f714ef3fa6
commit cf88b08ac6
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import type { RequestEvent } from "@sveltejs/kit";
import { COOKIE_SECRET } from "$env/static/private";
import { verify } from "jsonwebtoken";
import pkg from 'jsonwebtoken';
const { verify } = pkg;
import { error } from "@sveltejs/kit";
import { dbConnect, dbDisconnect } from "../../utils/db";
import { User } from "../../models/User";;