chore: bump version to 2.21.19 in package.json and enhance invitation validation (#434)

- Updated application version from 2.21.18 to 2.21.19 in package.json.
- Improved invitation validation by handling cases where the invitation is not found and ensuring email comparison is case insensitive.
This commit is contained in:
Giancarlo Buomprisco
2025-12-24 08:13:24 +01:00
committed by GitHub
parent 43038034fd
commit 4aac04ef0a
7 changed files with 250 additions and 241 deletions

View File

@@ -15,7 +15,7 @@
"ai": "5.0.116", "ai": "5.0.116",
"lucide-react": "^0.562.0", "lucide-react": "^0.562.0",
"next": "catalog:", "next": "catalog:",
"nodemailer": "^7.0.11", "nodemailer": "^7.0.12",
"react": "catalog:", "react": "catalog:",
"react-dom": "catalog:", "react-dom": "catalog:",
"rxjs": "^7.8.2" "rxjs": "^7.8.2"

View File

@@ -81,8 +81,17 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
// the user is logged in, we can now check if the token is valid // the user is logged in, we can now check if the token is valid
const invitation = await api.getInvitation(adminClient, token); const invitation = await api.getInvitation(adminClient, token);
// the invitation is not found or expired or the email is not the same as the user's email if (!invitation) {
const isInvitationValid = invitation?.email === auth.data.email; return (
<AuthLayoutShell Logo={AppLogo}>
<InviteNotFoundOrExpired />
</AuthLayoutShell>
);
}
// the invitation is not found or expired or the email is not the same as the user's email (case insensitive)
const isInvitationValid =
invitation.email.toLowerCase() === auth.data.email.toLowerCase();
if (!isInvitationValid) { if (!isInvitationValid) {
return ( return (

View File

@@ -1,6 +1,6 @@
{ {
"name": "next-supabase-saas-kit-turbo", "name": "next-supabase-saas-kit-turbo",
"version": "2.21.18", "version": "2.21.19",
"private": true, "private": true,
"sideEffects": false, "sideEffects": false,
"engines": { "engines": {
@@ -48,7 +48,7 @@
"@turbo/gen": "^2.7.0", "@turbo/gen": "^2.7.0",
"cross-env": "^10.0.0", "cross-env": "^10.0.0",
"prettier": "^3.7.4", "prettier": "^3.7.4",
"turbo": "2.7.0", "turbo": "2.7.1",
"typescript": "^5.9.3" "typescript": "^5.9.3"
} }
} }

View File

@@ -13,7 +13,7 @@
".": "./src/index.ts" ".": "./src/index.ts"
}, },
"dependencies": { "dependencies": {
"nodemailer": "^7.0.11" "nodemailer": "^7.0.12"
}, },
"devDependencies": { "devDependencies": {
"@kit/eslint-config": "workspace:*", "@kit/eslint-config": "workspace:*",

456
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,21 +4,21 @@ packages:
- tooling/* - tooling/*
catalog: catalog:
'@next/bundle-analyzer': 16.1.0 '@next/bundle-analyzer': 16.1.1
'@next/eslint-plugin-next': 16.1.0 '@next/eslint-plugin-next': 16.1.1
'@supabase/supabase-js': 2.89.0 '@supabase/supabase-js': 2.89.0
'@tailwindcss/postcss': 4.1.18 '@tailwindcss/postcss': 4.1.18
'@tanstack/react-query': 5.90.12 '@tanstack/react-query': 5.90.12
'@types/node': 25.0.3 '@types/node': 25.0.3
'@types/react': 19.2.7 '@types/react': 19.2.7
'@types/react-dom': 19.2.3 '@types/react-dom': 19.2.3
eslint-config-next: 16.1.0 eslint-config-next: 16.1.1
next: 16.1.0 next: 16.1.1
react: 19.2.3 react: 19.2.3
react-dom: 19.2.3 react-dom: 19.2.3
react-i18next: 16.5.0
react-hook-form: 7.69.0 react-hook-form: 7.69.0
supabase: 2.67.3 react-i18next: 16.5.0
supabase: 2.70.3
tailwindcss: 4.1.18 tailwindcss: 4.1.18
tw-animate-css: 1.4.0 tw-animate-css: 1.4.0
zod: 3.25.76 zod: 3.25.76

View File

@@ -16,7 +16,7 @@
"@next/eslint-plugin-next": "catalog:", "@next/eslint-plugin-next": "catalog:",
"@types/eslint": "9.6.1", "@types/eslint": "9.6.1",
"eslint-config-next": "catalog:", "eslint-config-next": "catalog:",
"eslint-config-turbo": "^2.7.0" "eslint-config-turbo": "^2.7.1"
}, },
"devDependencies": { "devDependencies": {
"@kit/prettier-config": "workspace:*", "@kit/prettier-config": "workspace:*",