AbdulA
Convex Community11mo ago
7 replies
Abdul

Mapping telegram user ids to Convex users

is there a way to just tell Convex "this user is authenticated" and then call the actions and have ctx.auth.getUserIdentity() return the user?

I have a use case for telegram bot where I am looking up user by their telegram user id and then calling the actions that depend on ctx.auth.getUserIdentity().

I want to avoid the need to pass telegram user id to the convex actions and want to have the same experience for telegram users as a user calling via convex react client.

I am using Clerk as auth provider and have users synced users between users table and Clerk. users tables has telegramUserId field which I am using for looking up user when handling webhook requests
Was this page helpful?