ibrahimyaacob
ibrahimyaacob3w ago

sign in as user ?

with convex auth, how do i sign in as user. its for the usecase where admins need to debug what is happening to user's account.
4 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
ballingt
ballingt3w ago
Is this logging into the app as the user or running a mutation or query as a user? Logging into the app as a user is a feature you'd need to build into your app. You could build this by writing our own getCurrentUser() function that used alternate logic when an admin is logged in
ibrahimyaacob
ibrahimyaacobOP2w ago
i need to log in as user
erquhart
erquhart2w ago
Logging in as a user isn't an authentication issue, it's an authorization issue. Convex doesn't handle any authorization, so you would write logic in your backend that allows probably specific admins to impersonate a user.

Did you find this page helpful?