Next.js 16, React 19.2, Identities page, Invitations identities step, PNPM Catalogs (#381)

* Upgraded to Next.js 16
* Refactored code to comply with React 19.2 ESLint rules
* Refactored some useEffect usages with the new useEffectEvent
* Added Identities page and added second step to set up an identity after accepting an invitation
* Updated all dependencies
* Introduced PNPM catalogs for some frequently updated dependencies
* Bugs fixing and improvements
This commit is contained in:
Giancarlo Buomprisco
2025-10-22 11:47:47 +09:00
committed by GitHub
parent ea0c1dde80
commit 2c0d0bf7a1
98 changed files with 4812 additions and 4394 deletions

View File

@@ -1,4 +1,4 @@
import type { SupabaseClient } from '@supabase/supabase-js';
import type { AMREntry, SupabaseClient } from '@supabase/supabase-js';
import { checkRequiresMultiFactorAuthentication } from './check-requires-mfa';
import { JWTUserData } from './types';
@@ -24,6 +24,7 @@ type UserClaims = {
aal: `aal1` | `aal2`;
session_id: string;
is_anonymous: boolean;
amr: AMREntry[];
};
/**
@@ -97,6 +98,7 @@ export async function requireUser(
app_metadata: user.app_metadata,
user_metadata: user.user_metadata,
id: user.sub,
amr: user.amr,
},
};
}