Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔊 Add warning log when using legacy session
Luke Vellac9de1c38da1b
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.tsindex 8147bae3b..34022571b 100644--- a/apps/web/src/lib/auth.ts+++ b/apps/web/src/lib/auth.ts@@ -397,6 +397,13 @@ export const getSession = cache(async () => {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,