diff --git a/src/app/api/auth/[...nextauth]/auth-options.ts b/src/app/api/auth/[...nextauth]/auth-options.ts index 41ca7ee..1b82c0c 100644 --- a/src/app/api/auth/[...nextauth]/auth-options.ts +++ b/src/app/api/auth/[...nextauth]/auth-options.ts @@ -46,6 +46,15 @@ export const authOptions: NextAuthOptions = { return session }, + signIn({ user }) { + const availableEmails = ['brunoslvrzl13@gmail.com'] + + if (availableEmails.includes(user.email)) { + return true + } + + return false + }, }, session: { strategy: 'jwt', diff --git a/src/app/auth/error/page.tsx b/src/app/auth/error/page.tsx index cc983cd..0063282 100644 --- a/src/app/auth/error/page.tsx +++ b/src/app/auth/error/page.tsx @@ -1,3 +1,31 @@ +import { Button } from '@/components/ui/button' +import { Card, CardContent } from '@/components/ui/card' +import { Settings } from 'lucide-react' +import Link from 'next/link' + export default function SignInError() { - return

Error

+ return ( +
+
+ + + + +
+ + A plataforma ainda está em construção + + + O acesso é limite somente a alguns usuário + +
+ + +
+
+
+
+ ) }