allow for build because of jsonwebtoken quirk
This commit is contained in:
parent
f714ef3fa6
commit
cf88b08ac6
@ -1,6 +1,7 @@
|
|||||||
import type { RequestEvent } from "@sveltejs/kit";
|
import type { RequestEvent } from "@sveltejs/kit";
|
||||||
import { COOKIE_SECRET } from "$env/static/private";
|
import { COOKIE_SECRET } from "$env/static/private";
|
||||||
import { verify } from "jsonwebtoken";
|
import pkg from 'jsonwebtoken';
|
||||||
|
const { verify } = pkg;
|
||||||
import { error } from "@sveltejs/kit";
|
import { error } from "@sveltejs/kit";
|
||||||
import { dbConnect, dbDisconnect } from "../../utils/db";
|
import { dbConnect, dbDisconnect } from "../../utils/db";
|
||||||
import { User } from "../../models/User";;
|
import { User } from "../../models/User";;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RequestHandler } from '@sveltejs/kit';
|
import type { RequestHandler } from '@sveltejs/kit';
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
import { sign } from 'jsonwebtoken';
|
import pkg from 'jsonwebtoken';
|
||||||
|
const { sign } = pkg;
|
||||||
import { verify} from 'argon2';
|
import { verify} from 'argon2';
|
||||||
import { COOKIE_SECRET } from '$env/static/private'
|
import { COOKIE_SECRET } from '$env/static/private'
|
||||||
import { PEPPER } from '$env/static/private'
|
import { PEPPER } from '$env/static/private'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RequestHandler } from '@sveltejs/kit';
|
import type { RequestHandler } from '@sveltejs/kit';
|
||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
import { verify } from 'jsonwebtoken';
|
import pkg from 'jsonwebtoken';
|
||||||
|
const { verify } = pkg;
|
||||||
import { hash} from 'argon2';
|
import { hash} from 'argon2';
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'crypto';
|
||||||
import { COOKIE_SECRET } from '$env/static/private'
|
import { COOKIE_SECRET } from '$env/static/private'
|
||||||
|
Loading…
Reference in New Issue
Block a user