DaddyDudeD
Convex Community14mo ago
4 replies
DaddyDude

Getting the user id

I am following a tutorial where they use
const userId = await auth.getUserId(ctx)


This is apprently deprecated now, so looking at the Convex code nase in my IDE I see I have to use

const userId = await getAuthUserId(ctx);


However, I cannot find any mention of getAuthUserId(ctx) in the Convex documentation.

Can anyone help?
Was this page helpful?