await createClient() promise in AuthButton.tsx (#30909)

This commit is contained in:
abdellah hariti authored and GitHub committed 2024-12-05 19:09:41 +00:00
1 parent ba132968cd
commit 7cdbbdaf72
1 file changed
+1 -1
@@ -12,7 +12,7 @@ export default async function AuthButton() {
const signOut = async () => {
'use server'
const supabase = createClient()
const supabase = await createClient()
await supabase.auth.signOut()
return redirect('/login')
}