useGetIdentity doesn't get identity 😥 #4459
Unanswered
LiaCiobanu001
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @LiaCiobanu001 I didn't fully understand what the problem was. Does authentication work properly? Or do you want to update the data of the logged in user? I recommend you to review the Auth Provider section. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
import { useGetIdentity } from "@refinedev/core";
const { data: user } = useGetIdentity({
v3LegacyAuthProviderCompatible: true,
});
const [propertyImage, setPropertyImage] = useState({ name: "", url: "" });
const {
refineCore: { onFinish, formLoading },
register,
handleSubmit,
} = useForm();
};
Soooo, It keeps giving me the error " User email is not available ", everything is ok with the code, I also imported everything, according to my searches on the net, the problem would be in "useGetIdentity ". I also looked over the documentation and nothing seems wrong.
Maybe it is imported differently or this import is used in a different way, please help me a little.
Beta Was this translation helpful? Give feedback.
All reactions