mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
await createClient() promise in AuthButton.tsx (#30909)
This commit is contained in:
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')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user