mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
14 lines
248 B
TypeScript
14 lines
248 B
TypeScript
"use client";
|
|
|
|
import { useAuth } from "./AuthProvider";
|
|
|
|
// TODO
|
|
export default function useAuthReady() {
|
|
const auth = useAuth();
|
|
|
|
return {
|
|
isAuthenticated: auth.status === "authenticated",
|
|
isLoading: auth.status === "loading",
|
|
};
|
|
}
|