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:
committed by
GitHub
parent
43038034fd
commit
4aac04ef0a
@@ -15,7 +15,7 @@
|
||||
"ai": "5.0.116",
|
||||
"lucide-react": "^0.562.0",
|
||||
"next": "catalog:",
|
||||
"nodemailer": "^7.0.11",
|
||||
"nodemailer": "^7.0.12",
|
||||
"react": "catalog:",
|
||||
"react-dom": "catalog:",
|
||||
"rxjs": "^7.8.2"
|
||||
|
||||
@@ -81,8 +81,17 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
|
||||
// the user is logged in, we can now check if the token is valid
|
||||
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
|
||||
const isInvitationValid = invitation?.email === auth.data.email;
|
||||
if (!invitation) {
|
||||
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) {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "next-supabase-saas-kit-turbo",
|
||||
"version": "2.21.18",
|
||||
"version": "2.21.19",
|
||||
"private": true,
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
@@ -48,7 +48,7 @@
|
||||
"@turbo/gen": "^2.7.0",
|
||||
"cross-env": "^10.0.0",
|
||||
"prettier": "^3.7.4",
|
||||
"turbo": "2.7.0",
|
||||
"turbo": "2.7.1",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"nodemailer": "^7.0.11"
|
||||
"nodemailer": "^7.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@kit/eslint-config": "workspace:*",
|
||||
|
||||
456
pnpm-lock.yaml
generated
456
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -4,21 +4,21 @@ packages:
|
||||
- tooling/*
|
||||
|
||||
catalog:
|
||||
'@next/bundle-analyzer': 16.1.0
|
||||
'@next/eslint-plugin-next': 16.1.0
|
||||
'@next/bundle-analyzer': 16.1.1
|
||||
'@next/eslint-plugin-next': 16.1.1
|
||||
'@supabase/supabase-js': 2.89.0
|
||||
'@tailwindcss/postcss': 4.1.18
|
||||
'@tanstack/react-query': 5.90.12
|
||||
'@types/node': 25.0.3
|
||||
'@types/react': 19.2.7
|
||||
'@types/react-dom': 19.2.3
|
||||
eslint-config-next: 16.1.0
|
||||
next: 16.1.0
|
||||
eslint-config-next: 16.1.1
|
||||
next: 16.1.1
|
||||
react: 19.2.3
|
||||
react-dom: 19.2.3
|
||||
react-i18next: 16.5.0
|
||||
react-hook-form: 7.69.0
|
||||
supabase: 2.67.3
|
||||
react-i18next: 16.5.0
|
||||
supabase: 2.70.3
|
||||
tailwindcss: 4.1.18
|
||||
tw-animate-css: 1.4.0
|
||||
zod: 3.25.76
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"@next/eslint-plugin-next": "catalog:",
|
||||
"@types/eslint": "9.6.1",
|
||||
"eslint-config-next": "catalog:",
|
||||
"eslint-config-turbo": "^2.7.0"
|
||||
"eslint-config-turbo": "^2.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@kit/prettier-config": "workspace:*",
|
||||
|
||||
Reference in New Issue
Block a user