lnajim
lnajim3w ago

Retrieve Authenticate User ConvexAuth

I got some issue to retrieve the logged In user. or when I console.log(isAuthenticated) I got true
No description
No description
No description
5 Replies
ballingt
ballingt3w ago
I don't understand your question yet, what is wrong?
lnajim
lnajimOP3w ago
Hi Tom I tried to follow the convex auth integration on nextjs and I want to dispaly the email of the current user (the authentitcated one but I got null for the console.log of the Found user and I got true when the I console log is Authenticated
ballingt
ballingt3w ago
huh, what convex auth version? You might try cloning the next example in convex auth to see if you can get that working, then compare
Yash
Yash3w ago
try storing user token inside user table, you will be able to retrive user via token from identity you also don't need createdAt, convex automatically creates that property _createdAt
lnajim
lnajimOP3w ago
I succed thx @tom @Yash

Did you find this page helpful?