sendou.ink/lib/useUser.ts
Kalle (Sendou) d8af2a03a5 can login
2020-10-19 00:07:20 +03:00

10 lines
235 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { User as PrismaUser } from "@prisma/client";
import { useSession } from "next-auth/client";
const useUser = (): [PrismaUser | undefined | null, boolean] => {
// @ts-ignore
return useSession();
};
export default useUser;