Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔥 Remove next-auth (#2230)

Luke Vella43d0f5aebf64
diff --git a/apps/web/declarations/next-auth.d.ts b/apps/web/declarations/next-auth.d.ts
deleted file mode 100644
index fdb8cd18b..000000000
--- a/apps/web/declarations/next-auth.d.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import type { TimeFormat, UserRole } from "@rallly/database";
-import type { DefaultSession, DefaultUser } from "next-auth";
-import type { DefaultJWT } from "next-auth/jwt";
-import type { NextRequest } from "next/server";
-
-declare module "next-auth" {
- /**
- * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
- */
- interface Session {
- user?: {
- id: string;
- isGuest: boolean;
- timeZone?: string | null;
- timeFormat?: TimeFormat | null;
- weekStart?: number | null;
- } & DefaultSession["user"];
- legacy?: boolean;
- }
-
- interface User extends DefaultUser {
- locale?: string | null;
- timeZone?: string | null;
- timeFormat?: TimeFormat | null;
- weekStart?: number | null;
- banned?: boolean | null;
- role?: UserRole | null;
- }
-
- interface NextAuthRequest extends NextRequest {
- auth: Session | null;
- }
-}
-
-declare module "next-auth/jwt" {
- interface JWT extends DefaultJWT {
- timeZone?: string | null;
- timeFormat?: TimeFormat | null;
- weekStart?: number | null;
- }
-}
diff --git a/apps/web/i18next-scanner.config.js b/apps/web/i18next-scanner.config.js
index 51accfa19..7f82d8a59 100644
--- a/apps/web/i18next-scanner.config.js
+++ b/apps/web/i18next-scanner.config.js
@@ -1,7 +1,7 @@
const typescriptTransform = require("i18next-scanner-typescript");
module.exports = {
- input: ["src/**/*.{ts,tsx}", "!src/next-auth*.ts"],
+ input: ["src/**/*.{ts,tsx}"],
options: {
nsSeparator: false,
defaultNs: "app",
diff --git a/apps/web/package.json b/apps/web/package.json
index 7b1284042..1f3d2f2e6 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -18,7 +18,6 @@
},
"dependencies": {
"@ai-sdk/openai": "^3.0.29",
- "@auth/prisma-adapter": "^2.7.4",
"@aws-sdk/client-s3": "^3.645.0",
"@aws-sdk/s3-request-presigner": "^3.645.0",
"@casl/ability": "^6.7.3",
@@ -88,7 +87,6 @@
"motion": "^12.6.2",
"nanoid": "^5.0.9",
"next": "16.1.6",
- "next-auth": "^5.0.0-beta.25",
"next-safe-action": "^8.0.7",
"pg": "^8.17.1",
"php-serialize": "^4.1.1",
diff --git a/apps/web/src/app/api/auth/[...nextauth]/route.ts b/apps/web/src/app/api/auth/[...nextauth]/route.ts
deleted file mode 100644
index 7a42cbe8b..000000000
--- a/apps/web/src/app/api/auth/[...nextauth]/route.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { handlers } from "@/next-auth";
-
-export const GET = handlers.GET;
-export const POST = handlers.POST;
diff --git a/apps/web/src/app/api/auth/invalid-session/route.ts b/apps/web/src/app/api/auth/invalid-session/route.ts
index 215065b8f..3b0643709 100644
--- a/apps/web/src/app/api/auth/invalid-session/route.ts
+++ b/apps/web/src/app/api/auth/invalid-session/route.ts
@@ -2,20 +2,14 @@ import { createLogger } from "@rallly/logger";
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import auth from "@/lib/auth";
-import { signOut as legacySignOut } from "@/next-auth";
const logger = createLogger("api/auth/invalid-session");
export async function GET(req: NextRequest) {
try {
- await Promise.all([
- legacySignOut({
- redirect: false,
- }),
- auth.api.signOut({
- headers: req.headers,
- }),
- ]);
+ await auth.api.signOut({
+ headers: req.headers,
+ });
} catch (error) {
logger.error({ error }, "Failed to sign out");
}
diff --git a/apps/web/src/app/api/trpc/[trpc]/route.ts b/apps/web/src/app/api/trpc/[trpc]/route.ts
index ff2708394..33583c57d 100644
--- a/apps/web/src/app/api/trpc/[trpc]/route.ts
+++ b/apps/web/src/app/api/trpc/[trpc]/route.ts
@@ -41,9 +41,6 @@ const handler = async (req: NextRequest) => {
router: appRouter,
createContext: async () => {
const locale = session?.user?.locale ?? reqLocale;
- const isLegacyGuest = session?.legacy && session?.user?.isGuest;
-
- event.isLegacyGuest = isLegacyGuest;
const user = session?.user
? {
@@ -52,7 +49,6 @@ const handler = async (req: NextRequest) => {
locale,
image: session.user.image ?? undefined,
timeZone: session.user.timeZone ?? undefined,
- isLegacyGuest: isLegacyGuest ?? false,
}
: undefined;
diff --git a/apps/web/src/auth/helpers/merge-user.ts b/apps/web/src/auth/helpers/merge-user.ts
index 27f6f4cd5..f13bd04b5 100644
--- a/apps/web/src/auth/helpers/merge-user.ts
+++ b/apps/web/src/auth/helpers/merge-user.ts
@@ -22,61 +22,6 @@ const getActiveSpaceForUser = async ({ userId }: { userId: string }) => {
return spaceMember?.spaceId;
};
-export const mergeGuestsIntoUser = async (userId: string, guestId: string) => {
- const spaceId = await getActiveSpaceForUser({ userId });
-
- try {
- await prisma.$transaction(async (tx) => {
- await Promise.all([
- tx.poll.updateMany({
- where: {
- guestId,
- },
- data: {
- guestId: null,
- userId: userId,
- spaceId,
- },
- }),
-
- tx.participant.updateMany({
- where: {
- guestId,
- },
- data: {
- guestId: null,
- userId: userId,
- },
- }),
-
- tx.comment.updateMany({
- where: {
- guestId,
- },
- data: {
- guestId: null,
- userId: userId,
- },
- }),
- ]);
- });
-
- const posthog = PostHogClient();
-
- posthog?.capture({
- distinctId: userId,
- event: "$merge_dangerously",
- properties: { alias: guestId },
- });
-
- if (posthog) {
- waitUntil(posthog.shutdown());
- }
- } catch (error) {
- Sentry.captureException(error);
- }
-};
-
export const linkAnonymousUser = async (
authenticatedUserId: string,
anonymousUserId: string,
diff --git a/apps/web/src/auth/providers/guest.ts b/apps/web/src/auth/providers/guest.ts
deleted file mode 100644
index 4894a98aa..000000000
--- a/apps/web/src/auth/providers/guest.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { randomid } from "@rallly/utils/nanoid";
-import CredentialsProvider from "next-auth/providers/credentials";
-
-export const GuestProvider = CredentialsProvider({
- id: "guest",
- name: "Guest",
- credentials: {},
- async authorize() {
- return {
- id: `user-${randomid()}`,
- email: null,
- };
- },
-});
diff --git a/apps/web/src/components/poll/desktop-poll.tsx b/apps/web/src/components/poll/desktop-poll.tsx
index 8241a8fb4..7d37d6b52 100644
--- a/apps/web/src/components/poll/desktop-poll.tsx
+++ b/apps/web/src/components/poll/desktop-poll.tsx
@@ -331,7 +331,6 @@ const DesktopPoll: React.FunctionComponent = () => {
id: participant.id,
name: participant.name,
userId: participant.userId ?? undefined,
- guestId: participant.guestId ?? undefined,
email: participant.email ?? undefined,
votes: participant.votes,
}}
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row.tsx b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
index 535c59a72..afbd4df95 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -23,7 +23,6 @@ export interface ParticipantRowProps {
id: string;
name: string;
userId?: string;
- guestId?: string;
email?: string;
votes: Vote[];
};
diff --git a/apps/web/src/components/user-provider.tsx b/apps/web/src/components/user-provider.tsx
index 0f68bcb27..29ebd7e8d 100644
--- a/apps/web/src/components/user-provider.tsx
+++ b/apps/web/src/components/user-provider.tsx
@@ -27,17 +27,13 @@ export function useUser() {
return {
user: user ?? undefined,
createGuestIfNeeded: async () => {
- const isLegacyGuest = user?.id.startsWith("user-");
- if (!user || isLegacyGuest) {
+ if (!user) {
await authClient.signIn.anonymous();
router.refresh();
}
},
getAbility: (): UserAbility => defineAbilityFor(user ?? undefined),
- ownsObject: (resource: {
- userId?: string | null;
- guestId?: string | null;
- }) => {
+ ownsObject: (resource: { userId?: string | null }) => {
return user ? isOwner(resource, { id: user.id }) : false;
},
};
diff --git a/apps/web/src/contexts/permissions.tsx b/apps/web/src/contexts/permissions.tsx
index 4ac7749d8..42aaca64a 100644
--- a/apps/web/src/contexts/permissions.tsx
+++ b/apps/web/src/contexts/permissions.tsx
@@ -61,9 +61,7 @@ export const usePermissions = () => {
if (
ownsObject(participant) ||
- (context.userId &&
- (participant.userId === context.userId ||
- participant.guestId === context.userId))
+ (context.userId && participant.userId === context.userId)
) {
return true;
}
diff --git a/apps/web/src/features/poll/helpers.ts b/apps/web/src/features/poll/helpers.ts
index 350e7cf55..8c69a96ba 100644
--- a/apps/web/src/features/poll/helpers.ts
+++ b/apps/web/src/features/poll/helpers.ts
@@ -5,19 +5,12 @@ export async function canUserManagePoll(
user: {
id: string;
isGuest: boolean;
- isLegacyGuest: boolean;
},
poll: {
userId?: string | null;
- guestId?: string | null;
spaceId?: string | null;
},
) {
- if (user.isLegacyGuest) {
- // guest user is owner
- return poll.guestId === user.id;
- }
-
if (poll.userId && poll.userId === user.id) {
// user is owner
return true;
diff --git a/apps/web/src/features/quick-create/lib/get-guest-polls.ts b/apps/web/src/features/quick-create/lib/get-guest-polls.ts
index 2848e2485..b71069bb2 100644
--- a/apps/web/src/features/quick-create/lib/get-guest-polls.ts
+++ b/apps/web/src/features/quick-create/lib/get-guest-polls.ts
@@ -11,8 +11,7 @@ export async function getGuestPolls() {
const recentlyCreatedPolls = await prisma.poll.findMany({
where: {
- guestId: session.legacy ? session.user.id : undefined,
- userId: session.legacy ? undefined : session.user.id,
+ userId: session.user.id,
deleted: false,
},
select: {
diff --git a/apps/web/src/lib/auth-client.ts b/apps/web/src/lib/auth-client.ts
index ae5194750..b3e15708a 100644
--- a/apps/web/src/lib/auth-client.ts
+++ b/apps/web/src/lib/auth-client.ts
@@ -7,7 +7,6 @@ import {
lastLoginMethodClient,
} from "better-auth/client/plugins";
import { createAuthClient } from "better-auth/react";
-import { signOut as nextAuthSignOut } from "next-auth/react";
import type { Auth } from "@/lib/auth";
export const authClient = createAuthClient({
@@ -22,9 +21,6 @@ export const authClient = createAuthClient({
});
export async function signOut() {
- await Promise.all([
- authClient.signOut(),
- nextAuthSignOut({ redirect: false }),
- ]);
+ await authClient.signOut();
window.location.href = "/login";
}
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.ts
index 079cde9a4..d0c4cb9c5 100644
--- a/apps/web/src/lib/auth.ts
+++ b/apps/web/src/lib/auth.ts
@@ -17,10 +17,7 @@ import {
import { headers } from "next/headers";
import { cache } from "react";
import { isEmailBlocked } from "@/auth/helpers/is-email-blocked";
-import {
- linkAnonymousUser,
- mergeGuestsIntoUser,
-} from "@/auth/helpers/merge-user";
+import { linkAnonymousUser } from "@/auth/helpers/merge-user";
import { isTemporaryEmail } from "@/auth/helpers/temp-email-domains";
import { env } from "@/env";
import { PostHogClient } from "@/features/analytics/posthog";
@@ -28,7 +25,6 @@ import { createSpace } from "@/features/space/mutations";
import { getTranslation } from "@/i18n/server";
import { getLocale } from "@/i18n/server/get-locale";
import { redis } from "@/lib/kv";
-import { auth as legacyAuth, signOut as legacySignOut } from "@/next-auth";
import { getEmailClient } from "@/utils/emails";
import { getValueByPath } from "@/utils/get-value-by-path";
@@ -329,19 +325,6 @@ export const authLib = betterAuth({
session: {
create: {
after: async (session) => {
- // Merge legacy guest users into new user
- const legacySession = await legacyAuth();
-
- if (legacySession) {
- if (legacySession.user?.isGuest) {
- await mergeGuestsIntoUser(session.userId, legacySession.user.id);
- }
- // Delete legacy session
- await legacySignOut({
- redirect: false,
- });
- }
-
const user = await prisma.user.findUnique({
where: { id: session.userId },
select: { isAnonymous: true, lastLoginMethod: true },
@@ -389,10 +372,10 @@ export const getSession = cache(async () => {
name: session.user.name,
isGuest: !!session.user.isAnonymous,
image: session.user.image,
+ locale: session.user.locale ?? undefined,
timeZone: session.user.timeZone ?? undefined,
},
expires: session.session.expiresAt.toISOString(),
- legacy: false,
};
}
} catch (e) {
@@ -400,40 +383,13 @@ export const getSession = cache(async () => {
return null;
}
- // Fallback to legacy auth
- // TODO: Remove this once we have fully migrated to better-auth and there are no active legacy sessions left
- try {
- const legacySession = await legacyAuth();
- if (legacySession) {
- logger.warn(
- {
- userId: legacySession.user?.id,
- isGuest: legacySession.user?.isGuest,
- },
- "Detected legacy session. This will be removed in the future.",
- );
- return {
- ...legacySession,
- legacy: true,
- };
- }
- } catch (e) {
- logger.error({ error: e }, "Failed to get legacy session");
- return null;
- }
-
return null;
});
export const signOut = async () => {
- await Promise.all([
- authLib.api.signOut({
- headers: await headers(),
- }),
- legacySignOut({
- redirect: false,
- }),
- ]);
+ await authLib.api.signOut({
+ headers: await headers(),
+ });
};
export const getUserIdIfLoggedIn = async () => {
diff --git a/apps/web/src/next-auth.ts b/apps/web/src/next-auth.ts
deleted file mode 100644
index b8d5b5f44..000000000
--- a/apps/web/src/next-auth.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import NextAuth from "next-auth";
-import { env } from "@/env";
-import { GuestProvider } from "./auth/providers/guest";
-
-const { auth, handlers, signIn, signOut } = NextAuth({
- session: {
- strategy: "jwt",
- },
- secret: env.SECRET_PASSWORD,
- providers: [GuestProvider],
- pages: {
- signIn: "/login",
- verifyRequest: "/login/verify",
- error: "/auth/error",
- },
- jwt: {
- maxAge: 60 * 60 * 24 * 60,
- },
- cookies: {
- sessionToken: {
- options: {
- maxAge: 60 * 60 * 24 * 60,
- },
- },
- },
- callbacks: {
- async session({ session, token }) {
- if (token.sub) {
- session.user.id = token.sub;
- session.user.name = token.name;
- session.user.email = token.email ? token.email : "";
- session.user.image = token.picture;
- session.user.isGuest = !token.email;
- }
-
- return session;
- },
- },
-});
-
-export { auth, handlers, signIn, signOut };
diff --git a/apps/web/src/trpc/context.ts b/apps/web/src/trpc/context.ts
index 337dcf465..606c24a66 100644
--- a/apps/web/src/trpc/context.ts
+++ b/apps/web/src/trpc/context.ts
@@ -6,7 +6,6 @@ export type User = {
locale?: string;
image?: string;
timeZone?: string;
- isLegacyGuest: boolean;
};
export type TRPCContext = {
diff --git a/apps/web/src/trpc/routers/polls.ts b/apps/web/src/trpc/routers/polls.ts
index 127fda041..15bedbaf0 100644
--- a/apps/web/src/trpc/routers/polls.ts
+++ b/apps/web/src/trpc/routers/polls.ts
@@ -190,9 +190,7 @@ export const polls = router({
description,
adminUrlId: adminToken,
participantUrlId,
- ...(ctx.user.isLegacyGuest
- ? { guestId: ctx.user.id }
- : { userId: ctx.user.id }),
+ userId: ctx.user.id,
watchers: !ctx.user.isGuest
? {
create: {
@@ -653,7 +651,6 @@ export const polls = router({
},
},
userId: true,
- guestId: true,
deleted: true,
spaceId: true,
watchers: {
diff --git a/apps/web/src/trpc/routers/polls/comments.ts b/apps/web/src/trpc/routers/polls/comments.ts
index d1e154381..5ef9edabb 100644
--- a/apps/web/src/trpc/routers/polls/comments.ts
+++ b/apps/web/src/trpc/routers/polls/comments.ts
@@ -29,14 +29,11 @@ export const comments = router({
},
select: {
userId: true,
- guestId: true,
hideParticipants: true,
},
});
- const isOwner = ctx.user?.isLegacyGuest
- ? poll?.guestId === ctx.user.id
- : poll?.userId === ctx.user?.id;
+ const isOwner = poll?.userId === ctx.user?.id;
const hideParticipants = poll?.hideParticipants && !isOwner;
@@ -50,9 +47,7 @@ export const comments = router({
return await prisma.comment.findMany({
where: {
pollId,
- ...(ctx.user.isLegacyGuest
- ? { guestId: ctx.user.id }
- : { userId: ctx.user.id }),
+ userId: ctx.user.id,
},
orderBy: [
{
@@ -112,9 +107,7 @@ export const comments = router({
content,
pollId,
authorName,
- ...(ctx.user.isLegacyGuest
- ? { guestId: ctx.user.id }
- : { userId: ctx.user.id }),
+ userId: ctx.user.id,
},
select: {
id: true,
@@ -198,7 +191,7 @@ export const comments = router({
const comment = await prisma.comment.findUnique({
where: { id: commentId },
- select: { pollId: true, userId: true, guestId: true },
+ select: { pollId: true, userId: true },
});
if (!comment) {
@@ -208,7 +201,7 @@ export const comments = router({
});
}
- const isAuthor = comment.userId === userId || comment.guestId === userId;
+ const isAuthor = comment.userId === userId;
if (!isAuthor && !(await hasPollAdminAccess(comment.pollId, userId))) {
throw new TRPCError({
diff --git a/apps/web/src/trpc/routers/polls/participants.ts b/apps/web/src/trpc/routers/polls/participants.ts
index d1d080ddf..55b408b4a 100644
--- a/apps/web/src/trpc/routers/polls/participants.ts
+++ b/apps/web/src/trpc/routers/polls/participants.ts
@@ -21,7 +21,7 @@ const MAX_PARTICIPANTS = 1000;
async function canModifyParticipant(participantId: string, userId: string) {
const participant = await prisma.participant.findUnique({
where: { id: participantId },
- select: { id: true, pollId: true, userId: true, guestId: true },
+ select: { id: true, pollId: true, userId: true },
});
if (!participant) {
@@ -31,8 +31,7 @@ async function canModifyParticipant(participantId: string, userId: string) {
});
}
- const isOwner =
- participant.userId === userId || participant.guestId === userId;
+ const isOwner = participant.userId === userId;
if (!isOwner && !(await hasPollAdminAccess(participant.pollId, userId))) {
throw new TRPCError({
@@ -248,9 +247,7 @@ export const participants = router({
name: name,
email,
timeZone,
- ...(ctx.user.isLegacyGuest
- ? { guestId: ctx.user.id }
- : { userId: ctx.user.id }),
+ userId: ctx.user.id,
locale: ctx.user.locale ?? undefined,
votes: {
createMany: {
@@ -268,7 +265,6 @@ export const participants = router({
id: true,
title: true,
userId: true,
- guestId: true,
},
},
},
diff --git a/apps/web/src/trpc/server/create-ssr-helper.ts b/apps/web/src/trpc/server/create-ssr-helper.ts
index ef7c9228f..ff6789170 100644
--- a/apps/web/src/trpc/server/create-ssr-helper.ts
+++ b/apps/web/src/trpc/server/create-ssr-helper.ts
@@ -31,7 +31,6 @@ export const createPublicSSRHelper = async () => {
locale: session.user.locale ?? undefined,
image: session.user.image ?? undefined,
timeZone: session.user.timeZone ?? undefined,
- isLegacyGuest: session.legacy && session.user.isGuest,
}
: undefined,
event,
@@ -68,7 +67,6 @@ export const createPrivateSSRHelper = async () => {
locale: session.user.locale ?? undefined,
image: session.user.image ?? undefined,
timeZone: session.user.timeZone ?? undefined,
- isLegacyGuest: false,
},
event,
} satisfies TRPCContext,
diff --git a/apps/web/src/utils/permissions.ts b/apps/web/src/utils/permissions.ts
index b99cc3510..52ba9490a 100644
--- a/apps/web/src/utils/permissions.ts
+++ b/apps/web/src/utils/permissions.ts
@@ -1,6 +1,6 @@
export function isOwner(
- resource: { userId?: string | null; guestId?: string | null },
+ resource: { userId?: string | null },
user: { id: string },
) {
- return resource.userId === user.id || resource.guestId === user.id;
+ return resource.userId === user.id;
}
diff --git a/packages/database/prisma/models/poll.prisma b/packages/database/prisma/models/poll.prisma
index 3448e1dea..54f6b1f91 100644
--- a/packages/database/prisma/models/poll.prisma
+++ b/packages/database/prisma/models/poll.prisma
@@ -24,7 +24,7 @@ model Poll {
description String?
location String?
userId String? @map("user_id")
- guestId String? @map("guest_id")
+ guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
timeZone String? @map("time_zone")
status PollStatus @default(open)
deleted Boolean @default(false)
@@ -74,7 +74,7 @@ model Participant {
name String
email String?
userId String? @map("user_id")
- guestId String? @map("guest_id")
+ guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
pollId String @map("poll_id")
locale String?
timeZone String? @map("time_zone")
@@ -140,7 +140,7 @@ model Comment {
pollId String @map("poll_id")
authorName String @map("author_name")
userId String? @map("user_id")
- guestId String? @map("guest_id")
+ guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime? @updatedAt @map("updated_at")
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3d489910c..94452ac5d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -184,9 +184,6 @@ importers:
'@ai-sdk/openai':
specifier: ^3.0.29
version: 3.0.29([email protected])
- '@auth/prisma-adapter':
- specifier: ^2.7.4
'@aws-sdk/client-s3':
specifier: ^3.645.0
version: 3.984.0
@@ -394,9 +391,6 @@ importers:
next:
specifier: 16.1.6
- next-auth:
- specifier: ^5.0.0-beta.25
next-safe-action:
specifier: ^8.0.7
@@ -952,39 +946,6 @@ packages:
'@asyncapi/[email protected]':
resolution: {integrity: sha512-czHoAk3PeXTLR+X8IUaD+IpT+g+zUvkcgMDJVothBsan+oHN3jfcFcFUNdOPAAFoUCQN1hXF1dWuphWy05THlA==}
- resolution: {integrity: sha512-Wd7mHPQ/8zy6Qj7f4T46vg3aoor8fskJm6g2Zyj064oQ3+p0xNZXAV60ww0hY+MbTesfu29kK14Zk5d5JTazXQ==}
- peerDependencies:
- '@simplewebauthn/browser': ^9.0.1
- '@simplewebauthn/server': ^9.0.2
- nodemailer: ^6.8.0
- peerDependenciesMeta:
- '@simplewebauthn/browser':
- optional: true
- '@simplewebauthn/server':
- optional: true
- nodemailer:
- optional: true
-
- resolution: {integrity: sha512-t9cJ2zNYAdWMacGRMT6+r4xr1uybIdmYa49calBPeTqwgAFPV/88ac9TEvCR85pvATiSPt8VaNf+Gt24JIT/uw==}
- peerDependencies:
- '@simplewebauthn/browser': ^9.0.1
- '@simplewebauthn/server': ^9.0.2
- nodemailer: ^7.0.7
- peerDependenciesMeta:
- '@simplewebauthn/browser':
- optional: true
- '@simplewebauthn/server':
- optional: true
- nodemailer:
- optional: true
-
- resolution: {integrity: sha512-Ke7DXP0Fy0Mlmjz/ZJLXwQash2UkA4621xCM0rMtEczr1kppLc/njCbUkHkIQ/PnmILjqSPEKeTjDPsYruvkug==}
- peerDependencies:
- '@prisma/client': '>=2.26.0 || >=3 || >=4 || >=5 || >=6'
-
'@aws-crypto/[email protected]':
resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==}
engines: {node: '>=16.0.0'}
@@ -3169,9 +3130,6 @@ packages:
'@oslojs/[email protected]':
resolution: {integrity: sha512-bLE7BtHrURedCn4Mco3ma9L4Y1GR2SMBuIvjWr7rmQ4/W/4Jy70TIAgZ+0nIlk0xHz1vNP8x8DCns45Sb2XRbg==}
- '@panva/[email protected]':
- resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-xNLYLBFTBKkCzEZIw842BxytQQATQv+lDTCEMZ8C196iJcJJMBUZxrhSTxLaohMyKK8QlzRNTRkUmanucnDSqg==}
@@ -8383,22 +8341,6 @@ packages:
resolution: {integrity: sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==}
engines: {node: '>= 0.4.0'}
- resolution: {integrity: sha512-+c51gquM3F6nMVmoAusRJ7RIoY0K4Ts9HCCwyy/BRoe4mp3msZpOzYMyb5LAYc1wSo74PMQkGDcaghIO7W6Xjg==}
- peerDependencies:
- '@simplewebauthn/browser': ^9.0.1
- '@simplewebauthn/server': ^9.0.2
- next: ^14.0.0-0 || ^15.0.0 || ^16.0.0
- nodemailer: ^7.0.7
- react: ^18.2.0 || ^19.0.0
- peerDependenciesMeta:
- '@simplewebauthn/browser':
- optional: true
- '@simplewebauthn/server':
- optional: true
- nodemailer:
- optional: true
-
resolution: {integrity: sha512-psCMdO50tfoT1kAH7OGXZvhyRfiHVK6IqwjmWFV5gtLo4dnqjAgcjcLNeJ92iI26UNlKShxYrBs1GQ6UXxk97A==}
engines: {node: '>=18.18.0'}
@@ -8551,9 +8493,6 @@ packages:
engines: {node: '>=18'}
hasBin: true
- resolution: {integrity: sha512-pQ5BsX3QRTgnt5HxgHwgunIRaDXBdkT23tf8dfzmtTIL2LTpdmxgbpbBm0VgFWAIDlezQvQCTgnVIUmHupXHxw==}
-
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
@@ -8914,14 +8853,6 @@ packages:
resolution: {integrity: sha512-C4ueZUrifTJMDFngybSWQ+GthcqCqPiCcGg5qnjoh+f6ie3+tdhFROqqshjttpQ6Q4DPM40USPTmU/UBYqgsbA==}
engines: {node: ^20.20.0 || >=22.22.0}
- resolution: {integrity: sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw==}
- peerDependencies:
- preact: '>=10'
-
- resolution: {integrity: sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==}
-
resolution: {integrity: sha512-tCmoRkPQLpBeWzpmbhryairGnhW9tKV6c6gr/w+RhoRoKEJwsjzipwp//1oCpGPOchvSLaAPlpcJi9MwMmoPyA==}
@@ -10827,31 +10758,6 @@ snapshots:
dependencies:
'@types/json-schema': 7.0.15
- dependencies:
- '@panva/hkdf': 1.2.1
- jose: 6.1.3
- oauth4webapi: 3.8.3
- preact: 10.24.3
- preact-render-to-string: 6.5.11([email protected])
-
- dependencies:
- '@panva/hkdf': 1.2.1
- jose: 6.1.3
- oauth4webapi: 3.8.3
- preact: 10.24.3
- preact-render-to-string: 6.5.11([email protected])
-
- dependencies:
- '@auth/core': 0.41.1
- transitivePeerDependencies:
- - '@simplewebauthn/browser'
- - '@simplewebauthn/server'
- - nodemailer
-
'@aws-crypto/[email protected]':
dependencies:
'@aws-crypto/util': 5.2.0
@@ -13745,8 +13651,6 @@ snapshots:
dependencies:
'@oslojs/encoding': 0.4.1
- '@panva/[email protected]': {}
-
'@peculiar/[email protected]':
dependencies:
asn1js: 3.0.7
@@ -19792,12 +19696,6 @@ snapshots:
- dependencies:
- '@auth/core': 0.41.0
- react: 19.2.4
-
dependencies:
'@babel/code-frame': 7.29.0
@@ -19965,8 +19863,6 @@ snapshots:
pathe: 2.0.3
tinyexec: 1.0.2
-
@@ -20355,12 +20251,6 @@ snapshots:
dependencies:
'@posthog/core': 1.20.0
- dependencies:
- preact: 10.24.3
-
-