Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

upgrade next-auth

Steven Teyf3218e643310
diff --git a/apps/web/lib/api/errors.ts b/apps/web/lib/api/errors.ts
index 717c086ebf..408dec5c9e 100644
--- a/apps/web/lib/api/errors.ts
+++ b/apps/web/lib/api/errors.ts
@@ -172,10 +172,7 @@ export function handleApiError(error: any): ErrorResponse & { status: number } {
};
}
-export function handleAndReturnErrorResponse(
- err: unknown,
- headers?: Record<string, string>,
-) {
+export function handleAndReturnErrorResponse(err: unknown, headers?: Headers) {
const { error, status } = handleApiError(err);
return NextResponse.json<ErrorResponse>({ error }, { headers, status });
}
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 208bbc4426..a6487991a1 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -5,6 +5,7 @@ import { prisma } from "@dub/prisma";
import { API_DOMAIN, getSearchParams } from "@dub/utils";
import { waitUntil } from "@vercel/functions";
import { AxiomRequest, withAxiom } from "next-axiom";
+import { headers } from "next/headers";
import {
PermissionAction,
getPermissionsByRole,
@@ -31,7 +32,7 @@ interface WithWorkspaceHandler {
req: Request;
params: Record<string, string>;
searchParams: Record<string, string>;
- headers?: Record<string, string>;
+ headers?: Headers;
session: Session;
permissions: PermissionAction[];
workspace: WorkspaceWithUsers;
@@ -61,371 +62,374 @@ export const withWorkspace = (
skipPermissionChecks?: boolean;
} = {},
) => {
- return withAxiom(async (req: AxiomRequest, { params: initialParams }) => {
- const params = await initialParams;
- const searchParams = getSearchParams(req.url);
-
- let apiKey: string | undefined = undefined;
- let headers = {};
- let workspace: WorkspaceWithUsers | undefined;
-
- try {
- const authorizationHeader = req.headers.get("Authorization");
- if (authorizationHeader) {
- if (!authorizationHeader.includes("Bearer ")) {
- throw new DubApiError({
- code: "bad_request",
- message:
- "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://d.to/auth",
- });
+ return withAxiom(
+ async (
+ req: AxiomRequest,
+ { params: initialParams }: { params: Promise<Record<string, string>> },
+ ) => {
+ const params = await initialParams;
+ const searchParams = getSearchParams(req.url);
+
+ let apiKey: string | undefined = undefined;
+ let headersList = await headers();
+ let workspace: WorkspaceWithUsers | undefined;
+
+ try {
+ const authorizationHeader = headersList.get("Authorization");
+ if (authorizationHeader) {
+ if (!authorizationHeader.includes("Bearer ")) {
+ throw new DubApiError({
+ code: "bad_request",
+ message:
+ "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://d.to/auth",
+ });
+ }
+ apiKey = authorizationHeader.replace("Bearer ", "");
}
- apiKey = authorizationHeader.replace("Bearer ", "");
- }
- let session: Session | undefined;
- let workspaceId: string | undefined;
- let workspaceSlug: string | undefined;
- let permissions: PermissionAction[] = [];
- let token: any | null = null;
- const isRestrictedToken = apiKey?.startsWith("dub_");
+ let session: Session | undefined;
+ let workspaceId: string | undefined;
+ let workspaceSlug: string | undefined;
+ let permissions: PermissionAction[] = [];
+ let token: any | null = null;
+ const isRestrictedToken = apiKey?.startsWith("dub_");
- const idOrSlug =
- params?.idOrSlug ||
- searchParams.workspaceId ||
- params?.slug ||
- searchParams.projectSlug;
+ const idOrSlug =
+ params?.idOrSlug ||
+ searchParams.workspaceId ||
+ params?.slug ||
+ searchParams.projectSlug;
- /*
+ /*
if there's no workspace ID or slug and it's not a restricted token:
- special case for anonymous link creation
- missing authorization header
- user is still using personal API keys
*/
- if (!idOrSlug && !isRestrictedToken) {
- // special case for anonymous link creation
- if (
- req.headers.has("dub-anonymous-link-creation") &&
- ["/links", "/api/links"].includes(req.nextUrl.pathname)
- ) {
- // @ts-expect-error
- return await handler({
- req,
- params,
- searchParams,
- headers,
- });
- // missing authorization header
- } else if (!authorizationHeader) {
- throw new DubApiError({
- code: "unauthorized",
- message: "Missing Authorization header.",
- });
- // in case user is still using personal API keys
- } else {
- throw new DubApiError({
- code: "not_found",
- message:
- "Workspace ID not found. Did you forget to include a `workspaceId` query parameter? It looks like you might be using personal API keys, we also recommend refactoring to workspace API keys: https://d.to/keys",
- });
+ if (!idOrSlug && !isRestrictedToken) {
+ // special case for anonymous link creation
+ if (
+ headersList.has("dub-anonymous-link-creation") &&
+ ["/links", "/api/links"].includes(req.nextUrl.pathname)
+ ) {
+ // @ts-expect-error
+ return await handler({
+ req,
+ params,
+ searchParams,
+ headers: headersList,
+ });
+ // missing authorization header
+ } else if (!authorizationHeader) {
+ throw new DubApiError({
+ code: "unauthorized",
+ message: "Missing Authorization header.",
+ });
+ // in case user is still using personal API keys
+ } else {
+ throw new DubApiError({
+ code: "not_found",
+ message:
+ "Workspace ID not found. Did you forget to include a `workspaceId` query parameter? It looks like you might be using personal API keys, we also recommend refactoring to workspace API keys: https://d.to/keys",
+ });
+ }
}
- }
- if (idOrSlug) {
- if (idOrSlug.startsWith("ws_")) {
- workspaceId = normalizeWorkspaceId(idOrSlug);
- } else {
- workspaceSlug = idOrSlug;
+ if (idOrSlug) {
+ if (idOrSlug.startsWith("ws_")) {
+ workspaceId = normalizeWorkspaceId(idOrSlug);
+ } else {
+ workspaceSlug = idOrSlug;
+ }
}
- }
- if (apiKey) {
- const hashedKey = await hashToken(apiKey);
+ if (apiKey) {
+ const hashedKey = await hashToken(apiKey);
- const cachedToken = await tokenCache.get({
- hashedKey,
- });
+ const cachedToken = await tokenCache.get({
+ hashedKey,
+ });
- if (!cachedToken) {
- const prismaArgs = {
- where: {
- hashedKey,
- },
- select: {
- ...(isRestrictedToken && {
- scopes: true,
- rateLimit: true,
- projectId: true,
- expires: true,
- installationId: true,
- }),
- user: {
- select: {
- id: true,
- name: true,
- email: true,
- isMachine: true,
+ if (!cachedToken) {
+ const prismaArgs = {
+ where: {
+ hashedKey,
+ },
+ select: {
+ ...(isRestrictedToken && {
+ scopes: true,
+ rateLimit: true,
+ projectId: true,
+ expires: true,
+ installationId: true,
+ }),
+ user: {
+ select: {
+ id: true,
+ name: true,
+ email: true,
+ isMachine: true,
+ },
},
},
- },
- };
+ };
- if (isRestrictedToken) {
- token = await prisma.restrictedToken.findUnique(prismaArgs);
- } else {
- token = await prisma.token.findUnique(prismaArgs);
+ if (isRestrictedToken) {
+ token = await prisma.restrictedToken.findUnique(prismaArgs);
+ } else {
+ token = await prisma.token.findUnique(prismaArgs);
+ }
}
- }
- token = cachedToken || token;
+ token = cachedToken || token;
- if (!token || !token.user) {
- throw new DubApiError({
- code: "unauthorized",
- message: "Unauthorized: Invalid API key.",
- });
- }
-
- if (token.expires && token.expires < new Date()) {
- throw new DubApiError({
- code: "unauthorized",
- message: "Unauthorized: Access token expired.",
- });
- }
+ if (!token || !token.user) {
+ throw new DubApiError({
+ code: "unauthorized",
+ message: "Unauthorized: Invalid API key.",
+ });
+ }
- if (!cachedToken) {
- waitUntil(
- tokenCache.set({
- hashedKey,
- token,
- }),
- );
- }
+ if (token.expires && token.expires < new Date()) {
+ throw new DubApiError({
+ code: "unauthorized",
+ message: "Unauthorized: Access token expired.",
+ });
+ }
- // Rate limit checks for API keys
- const rateLimit = token.rateLimit || 600;
+ if (!cachedToken) {
+ waitUntil(
+ tokenCache.set({
+ hashedKey,
+ token,
+ }),
+ );
+ }
- const { success, limit, reset, remaining } = await ratelimit(
- rateLimit,
- "1 m",
- ).limit(apiKey);
+ // Rate limit checks for API keys
+ const rateLimit = token.rateLimit || 600;
- headers = {
- "Retry-After": reset.toString(),
- "X-RateLimit-Limit": limit.toString(),
- "X-RateLimit-Remaining": remaining.toString(),
- "X-RateLimit-Reset": reset.toString(),
- };
+ const { success, limit, reset, remaining } = await ratelimit(
+ rateLimit,
+ "1 m",
+ ).limit(apiKey);
- if (!success) {
- throw new DubApiError({
- code: "rate_limit_exceeded",
- message: "Too many requests.",
- });
- }
+ headersList.set("Retry-After", reset.toString());
+ headersList.set("X-RateLimit-Limit", limit.toString());
+ headersList.set("X-RateLimit-Remaining", remaining.toString());
+ headersList.set("X-RateLimit-Reset", reset.toString());
- // Find workspaceId if it's a restricted token
- if (isRestrictedToken) {
- workspaceId = token.projectId;
- }
+ if (!success) {
+ throw new DubApiError({
+ code: "rate_limit_exceeded",
+ message: "Too many requests.",
+ });
+ }
- waitUntil(
- // update last used time for the token (only once every minute)
- (async () => {
- try {
- const { success } = await ratelimit(1, "1 m").limit(
- `last-used-${hashedKey}`,
- );
-
- if (success) {
- const prismaArgs = {
- where: {
- hashedKey,
- },
- data: {
- lastUsed: new Date(),
- },
- };
+ // Find workspaceId if it's a restricted token
+ if (isRestrictedToken) {
+ workspaceId = token.projectId;
+ }
- if (isRestrictedToken) {
- await prisma.restrictedToken.update(prismaArgs);
- } else {
- await prisma.token.update(prismaArgs);
+ waitUntil(
+ // update last used time for the token (only once every minute)
+ (async () => {
+ try {
+ const { success } = await ratelimit(1, "1 m").limit(
+ `last-used-${hashedKey}`,
+ );
+
+ if (success) {
+ const prismaArgs = {
+ where: {
+ hashedKey,
+ },
+ data: {
+ lastUsed: new Date(),
+ },
+ };
+
+ if (isRestrictedToken) {
+ await prisma.restrictedToken.update(prismaArgs);
+ } else {
+ await prisma.token.update(prismaArgs);
+ }
}
+ } catch (error) {
+ console.error(error);
}
- } catch (error) {
- console.error(error);
- }
- })(),
- );
+ })(),
+ );
- session = {
- user: {
- id: token.user.id,
- name: token.user.name || "",
- email: token.user.email || "",
- isMachine: token.user.isMachine,
- },
- };
- } else {
- session = await getSession();
+ session = {
+ user: {
+ id: token.user.id,
+ name: token.user.name || "",
+ email: token.user.email || "",
+ isMachine: token.user.isMachine,
+ },
+ };
+ } else {
+ session = await getSession();
- if (!session?.user?.id) {
- throw new DubApiError({
- code: "unauthorized",
- message: "Unauthorized: Login required.",
- });
+ if (!session?.user?.id) {
+ throw new DubApiError({
+ code: "unauthorized",
+ message: "Unauthorized: Login required.",
+ });
+ }
}
- }
- workspace = (await prisma.project.findUnique({
- where: {
- id: workspaceId || undefined,
- slug: workspaceSlug || undefined,
- },
- include: {
- users: {
- where: {
- userId: session.user.id,
- },
- select: {
- role: true,
- defaultFolderId: true,
- workspacePreferences: !apiKey, // Hide from API
- },
- },
- },
- })) as WorkspaceWithUsers;
-
- // workspace doesn't exist
- if (!workspace || !workspace.users) {
- throw new DubApiError({
- code: "not_found",
- message: "Workspace not found.",
- });
- }
-
- // workspace exists but user is not part of it
- if (workspace.users.length === 0) {
- const pendingInvites = await prisma.projectInvite.findUnique({
+ workspace = (await prisma.project.findUnique({
where: {
- email_projectId: {
- email: session.user.email,
- projectId: workspace.id,
- },
+ id: workspaceId || undefined,
+ slug: workspaceSlug || undefined,
},
- select: {
- expires: true,
+ include: {
+ users: {
+ where: {
+ userId: session.user.id,
+ },
+ select: {
+ role: true,
+ defaultFolderId: true,
+ workspacePreferences: !apiKey, // Hide from API
+ },
+ },
},
- });
+ })) as WorkspaceWithUsers;
- if (!pendingInvites) {
+ // workspace doesn't exist
+ if (!workspace || !workspace.users) {
throw new DubApiError({
code: "not_found",
message: "Workspace not found.",
});
- } else if (pendingInvites.expires < new Date()) {
- throw new DubApiError({
- code: "invite_expired",
- message: "Workspace invite expired.",
- });
- } else {
- throw new DubApiError({
- code: "invite_pending",
- message: "Workspace invite pending.",
+ }
+
+ // workspace exists but user is not part of it
+ if (workspace.users.length === 0) {
+ const pendingInvites = await prisma.projectInvite.findUnique({
+ where: {
+ email_projectId: {
+ email: session.user.email,
+ projectId: workspace.id,
+ },
+ },
+ select: {
+ expires: true,
+ },
});
+
+ if (!pendingInvites) {
+ throw new DubApiError({
+ code: "not_found",
+ message: "Workspace not found.",
+ });
+ } else if (pendingInvites.expires < new Date()) {
+ throw new DubApiError({
+ code: "invite_expired",
+ message: "Workspace invite expired.",
+ });
+ } else {
+ throw new DubApiError({
+ code: "invite_pending",
+ message: "Workspace invite pending.",
+ });
+ }
}
- }
- // Machine users have owner role by default
- // Only workspace owners can create machine users
- if (session.user.isMachine) {
- workspace.users[0].role = "owner";
- }
+ // Machine users have owner role by default
+ // Only workspace owners can create machine users
+ if (session.user.isMachine) {
+ workspace.users[0].role = "owner";
+ }
- permissions = getPermissionsByRole(workspace.users[0].role);
+ permissions = getPermissionsByRole(workspace.users[0].role);
- // Find the subset of permissions that the user has access to based on the token scopes
- if (isRestrictedToken) {
- const tokenScopes: Scope[] = token.scopes.split(" ") || [];
- permissions = mapScopesToPermissions(tokenScopes).filter((p) =>
- permissions.includes(p),
- );
- }
+ // Find the subset of permissions that the user has access to based on the token scopes
+ if (isRestrictedToken) {
+ const tokenScopes: Scope[] = token.scopes.split(" ") || [];
+ permissions = mapScopesToPermissions(tokenScopes).filter((p) =>
+ permissions.includes(p),
+ );
+ }
- // Check user has permission to make the action
- if (!skipPermissionChecks) {
- throwIfNoAccess({
- permissions,
- requiredPermissions,
- workspaceId: workspace.id,
- externalRequest: Boolean(apiKey),
- });
- }
+ // Check user has permission to make the action
+ if (!skipPermissionChecks) {
+ throwIfNoAccess({
+ permissions,
+ requiredPermissions,
+ workspaceId: workspace.id,
+ externalRequest: Boolean(apiKey),
+ });
+ }
- // beta feature checks
- if (featureFlag) {
- let flags = await getFeatureFlags({
- workspaceId: workspace.id,
- });
+ // beta feature checks
+ if (featureFlag) {
+ let flags = await getFeatureFlags({
+ workspaceId: workspace.id,
+ });
- if (!flags[featureFlag]) {
+ if (!flags[featureFlag]) {
+ throw new DubApiError({
+ code: "forbidden",
+ message: "Unauthorized: Beta feature.",
+ });
+ }
+ }
+
+ const url = new URL(req.url || "", API_DOMAIN);
+
+ // plan checks
+ if (!requiredPlan.includes(workspace.plan)) {
throw new DubApiError({
code: "forbidden",
- message: "Unauthorized: Beta feature.",
+ message: "Unauthorized: Need higher plan.",
});
}
- }
-
- const url = new URL(req.url || "", API_DOMAIN);
- // plan checks
- if (!requiredPlan.includes(workspace.plan)) {
- throw new DubApiError({
- code: "forbidden",
- message: "Unauthorized: Need higher plan.",
- });
- }
+ // analytics API checks
+ if (
+ workspace.plan === "free" &&
+ apiKey &&
+ url.pathname.includes("/analytics")
+ ) {
+ throw new DubApiError({
+ code: "forbidden",
+ message: "Analytics API is only available on paid plans.",
+ });
+ }
- // analytics API checks
- if (
- workspace.plan === "free" &&
- apiKey &&
- url.pathname.includes("/analytics")
- ) {
- throw new DubApiError({
- code: "forbidden",
- message: "Analytics API is only available on paid plans.",
+ return await handler({
+ req,
+ params,
+ searchParams,
+ headers: headersList,
+ session,
+ workspace,
+ permissions,
});
- }
+ } catch (error) {
+ req.log.error(error);
- return await handler({
- req,
- params,
- searchParams,
- headers,
- session,
- workspace,
- permissions,
- });
- } catch (error) {
- req.log.error(error);
-
- // Log the conversion events for debugging purposes
- waitUntil(
- (async () => {
- const paths = ["/track/lead", "/track/sale"];
-
- if (workspace && paths.includes(req.nextUrl.pathname)) {
- logConversionEvent({
- workspace_id: workspace.id,
- path: req.nextUrl.pathname,
- error: error.message,
- });
- }
- })(),
- );
+ // Log the conversion events for debugging purposes
+ waitUntil(
+ (async () => {
+ const paths = ["/track/lead", "/track/sale"];
+
+ if (workspace && paths.includes(req.nextUrl.pathname)) {
+ logConversionEvent({
+ workspace_id: workspace.id,
+ path: req.nextUrl.pathname,
+ error: error.message,
+ });
+ }
+ })(),
+ );
- return handleAndReturnErrorResponse(error, headers);
- }
- });
+ return handleAndReturnErrorResponse(error, headersList);
+ }
+ },
+ );
};
diff --git a/apps/web/package.json b/apps/web/package.json
index 8ba278a29a..aadba3d06d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -90,7 +90,7 @@
"motion": "^12.23.22",
"nanoid": "^5.0.1",
"next": "15.5.4",
- "next-auth": "^4.24.4",
+ "next-auth": "4.24.11",
"next-axiom": "^1.9.1",
"next-plausible": "^3.12.0",
"next-safe-action": "7.9.9",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a12f9e0674..d04b2af476 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -78,7 +78,7 @@ importers:
version: 1.29.1
'@next-auth/prisma-adapter':
specifier: ^1.0.5
'@next/third-parties':
specifier: 15.5.4
@@ -260,8 +260,8 @@ importers:
specifier: 15.5.4
next-auth:
- specifier: ^4.24.4
+ specifier: 4.24.11
next-axiom:
specifier: ^1.9.1
@@ -1450,10 +1450,6 @@ packages:
resolution: {integrity: sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==}
- engines: {node: '>=6.9.0'}
-
resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==}
engines: {node: '>=6.9.0'}
@@ -3168,8 +3164,8 @@ packages:
'@originjs/[email protected]':
resolution: {integrity: sha512-KuEXeGPptM2lyxdIEJ4R11+5ztipHoE7hy8ClZt3PYaOVQ/pyngd2alaSrPnwyFeOW1UagRBaQ752aA1dTMdOQ==}
- '@panva/[email protected]':
- resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==}
+ '@panva/[email protected]':
+ resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==}
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
@@ -9248,8 +9244,8 @@ packages:
resolution: {integrity: sha512-NgB+lZLNoqISVy1rZocE9PZI36bL/77ie924Ri43yEvi9GUUMPeyVIr8KdFTMUlby1p0PBYMk9spIxEUQYqrJQ==}
- resolution: {integrity: sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg==}
+ resolution: {integrity: sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==}
resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}
@@ -10070,14 +10066,17 @@ packages:
resolution: {integrity: sha512-iGBUfFB7yPczHHtA8dksKTJ9E8TESNTAx1UQWW6TzMF280vo9jdPYpLUXrMN1BCkPdHFdNG3fxOt2CUad8KhAw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}
+ resolution: {integrity: sha512-pCFXzIDQX7xmHFs4KVH4luCjaCbuPRtZ9oBUjUhOk84mZ9WVPf94n87TxYI4rSRf9HmfHEF8Yep3JrYDVOo3Cw==}
peerDependencies:
- next: ^12.2.5 || ^13 || ^14
+ '@auth/core': 0.34.2
+ next: ^12.2.5 || ^13 || ^14 || ^15
nodemailer: ^6.6.5
- react: ^17.0.2 || ^18
- react-dom: ^17.0.2 || ^18
+ react: ^17.0.2 || ^18 || ^19
+ react-dom: ^17.0.2 || ^18 || ^19
peerDependenciesMeta:
+ '@auth/core':
+ optional: true
nodemailer:
optional: true
@@ -10311,8 +10310,8 @@ packages:
resolution: {integrity: sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==}
- resolution: {integrity: sha512-IF4PcGgzAr6XXSff26Sk/+P4KZFJVuHAJZj3wgO3vX2bMdNVp/QXTP3P7CEm9V1IdG8lDLY3HhiqpsE/nOwpPw==}
+ resolution: {integrity: sha512-D7EmwxJV6DsEB6vOFLrBM2OzsVgQzgPWyHlV2OOAVj772n+WTXpudC9e9u5BVKQnYwaD30Ivhi9b+4UeBcGu9g==}
engines: {node: ^10.13.0 || >=12.0.0}
@@ -10348,8 +10347,8 @@ packages:
resolution: {integrity: sha512-KL1mKwkZii5ce+tb24KCUmQHyWB/oanG5fzUY35UB+wenWJv4Kr/IWBntpn5R8ODiJcxx13ZDophcpHnLGeIOw==}
- resolution: {integrity: sha512-PtrWsY+dXg6y8mtMPyL/namZSYVz8pjXz3yJiBNZsEdCnu9miHLB4ELVC85WvneMKo2Rg62Ay7NkuCpM0bgiLQ==}
+ resolution: {integrity: sha512-jDBPgSVfTnkIh71Hg9pRvtJc6wTwqjRkN88+gCFtYWrlP4Yx2Dsrow8uPi3qLr/aeymPF3o2+dS+wOpglK04ew==}
resolution: {integrity: sha512-fAfYaTnOYE2kQCqEJGX9KDObW2aw7IQy4jWpU/+3D3WoCFLbix5Hg6qIPQ6Js9r7f8jDUmsnnguRNCSw4wU/IQ==}
@@ -10710,12 +10709,12 @@ packages:
peerDependencies:
preact: '>=10'
- resolution: {integrity: sha512-mKUD7RRkQQM6s7Rkmi7IFkoEHjuFqRQUaXamO61E6Nn7vqF/bo7EZCmSyrUnp2UWHw0O7XjZ2eeXis+m7tf4lg==}
-
resolution: {integrity: sha512-jRYbDDgMpIb5LHq3hkI0bbl+l/TQ9UnkdQ0ww+lp+4MMOdqaUYdFc5qeyP+IV8FAd/2Em7drVPeKdQxsiWCf/A==}
+ resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==}
+
resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==}
engines: {node: '>=10'}
@@ -14189,10 +14188,6 @@ snapshots:
dependencies:
regenerator-runtime: 0.14.0
- '@babel/[email protected]':
- dependencies:
- regenerator-runtime: 0.14.0
-
dependencies:
regenerator-runtime: 0.14.0
@@ -15756,10 +15751,10 @@ snapshots:
dependencies:
sparse-bitfield: 3.0.3
dependencies:
'@prisma/client': 5.18.0([email protected])
'@next/[email protected]': {}
@@ -16042,7 +16037,7 @@ snapshots:
esbuild: 0.14.54
optional: true
- '@panva/[email protected]': {}
+ '@panva/[email protected]': {}
optional: true
@@ -21266,8 +21261,7 @@ snapshots:
- optional: true
optional: true
@@ -24166,7 +24160,7 @@ snapshots:
'@sideway/formula': 3.0.1
'@sideway/pinpoint': 2.0.0
@@ -24496,8 +24490,7 @@ snapshots:
- optional: true
dependencies:
@@ -25182,17 +25175,17 @@ snapshots:
dependencies:
- '@babel/runtime': 7.23.2
- '@panva/hkdf': 1.1.1
- cookie: 0.5.0
- jose: 4.15.5
+ '@babel/runtime': 7.23.9
+ '@panva/hkdf': 1.2.1
+ cookie: 0.7.2
+ jose: 4.15.9
oauth: 0.9.15
- openid-client: 5.6.1
- preact: 10.18.1
- preact-render-to-string: 5.2.6([email protected])
+ openid-client: 5.7.1
+ preact: 10.24.3
+ preact-render-to-string: 5.2.6([email protected])
react: 19.1.1
react-dom: 19.1.1([email protected])
uuid: 8.3.2
@@ -25430,7 +25423,7 @@ snapshots:
dependencies:
@@ -25473,12 +25466,12 @@ snapshots:
dependencies:
yaml: 2.3.4
dependencies:
- jose: 4.15.5
+ jose: 4.15.9
lru-cache: 6.0.0
object-hash: 2.2.0
- oidc-token-hash: 5.0.3
+ oidc-token-hash: 5.1.1
dependencies:
@@ -25664,7 +25657,7 @@ snapshots:
dependencies:
- lru-cache: 10.2.0
+ lru-cache: 10.4.3
minipass: 7.1.2
@@ -25897,15 +25890,15 @@ snapshots:
preact: 10.22.1
web-vitals: 4.2.2
dependencies:
- preact: 10.18.1
+ preact: 10.24.3
pretty-format: 3.8.0
-
+
dependencies:
detect-libc: 2.0.3