mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-28 16:49:36 +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 };
|
|
};
|