♻️ Regenerate frontend client (#1156)

This commit is contained in:
Alejandra
2024-04-06 18:26:12 -05:00
committed by GitHub
parent e5670212ea
commit b92de6eb4f
14 changed files with 61 additions and 61 deletions

View File

@@ -6,7 +6,7 @@ import {
type Body_login_login_access_token as AccessToken,
type ApiError,
LoginService,
type UserOut,
type UserPublic,
UsersService,
} from "../client"
@@ -17,7 +17,7 @@ const isLoggedIn = () => {
const useAuth = () => {
const [error, setError] = useState<string | null>(null)
const navigate = useNavigate()
const { data: user, isLoading } = useQuery<UserOut | null, Error>({
const { data: user, isLoading } = useQuery<UserPublic | null, Error>({
queryKey: ["currentUser"],
queryFn: UsersService.readUserMe,
enabled: isLoggedIn(),