DaddyDude
DaddyDude
CCConvex Community
Created by DaddyDude on 12/17/2024 in #support-community
Getting the user id
I am following a tutorial where they use
const userId = await auth.getUserId(ctx)
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);
const userId = await getAuthUserId(ctx);
However, I cannot find any mention of getAuthUserId(ctx) in the Convex documentation. Can anyone help?
5 replies