usermez's Thread

Does anyone know what I am doing wrong?
Somewhere in my convex function I have the following code.
const userId = await getAuthUserId(ctx);


When I try to write a unit test using convex-test, I can set the auth context as follows:
const ctx = t.withIdentity({ id: userId.toString(), tokenIdentifier: "test" });


But when I compare the userIds they don't match. What am I missing?
Was this page helpful?