fixed auth problem in the web
This commit is contained in:
@@ -3,6 +3,7 @@ import Hero from "@/components/Hero";
|
||||
import Features from "@/components/Features";
|
||||
import Footer from "@/components/Footer";
|
||||
import { auth } from "@/auth";
|
||||
export const dynamic = 'force-dynamic';
|
||||
import { LoginButton } from "@/components/LoginButton";
|
||||
|
||||
export default async function Home() {
|
||||
|
||||
@@ -13,7 +13,7 @@ export function LoginButton({ session }: { session: any }) {
|
||||
<form
|
||||
action={async () => {
|
||||
"use server"
|
||||
await signOut()
|
||||
await signOut({ redirectTo: "/" })
|
||||
}}
|
||||
>
|
||||
<Button type="submit" size={'lg'} className="hover:cursor-pointer text-white px-6 py-2 bg-red-500/20 hover:bg-red-500/40 border border-red-500 rounded-full font-semibold transition-all hover:scale-105">
|
||||
|
||||
Reference in New Issue
Block a user