mirror of
				https://github.com/D4M13N-D3V/neroshitron.git
				synced 2025-10-30 09:05:34 +00:00 
			
		
		
		
	Update NavigationBar.tsx
This commit is contained in:
		
							parent
							
								
									381009d5c9
								
							
						
					
					
						commit
						e17aba510c
					
				| @ -1,6 +1,7 @@ | ||||
| import { createClient } from "@/utils/supabase/server"; | ||||
| 
 | ||||
| "use client"; | ||||
| import { createClient } from "@/utils/supabase/client"; | ||||
| import Link from "next/link"; | ||||
| import { redirect, useRouter } from "next/navigation"; | ||||
| import crypto from 'crypto'; | ||||
| import { headers } from "next/headers"; | ||||
| 
 | ||||
| @ -13,11 +14,10 @@ export default async function AuthButton() { | ||||
|   } = await supabase.auth.getUser(); | ||||
| 
 | ||||
|   const signOut = async () => { | ||||
|     "use server"; | ||||
| 
 | ||||
|     const supabase = createClient(); | ||||
|     await supabase.auth.signOut(); | ||||
|     return redirect("/login"); | ||||
|     window.location.href = "/gallery"; | ||||
|   }; | ||||
| 
 | ||||
|    | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user