mirror of
				https://github.com/khairul169/code-share.git
				synced 2025-11-04 05:31:08 +07:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			171 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			171 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { usePageContext } from "~/renderer/context";
 | 
						|
 | 
						|
export const useAuth = () => {
 | 
						|
  const { user } = usePageContext();
 | 
						|
 | 
						|
  return { user, isLoggedIn: user != null };
 | 
						|
};
 |