spenceS
Convex Community5mo ago
5 replies
spence

I’m using a Convex function with Node.js

I’m using a Convex function with Node.js runtime to generate signed urls for images stored on cloudflare. I know I can check if a user is authenticated, but I’d like to enforce more specific permissions. like instead of just checking authentication, I want to verify that the users _id exists in a chatroomMembers table before allowing them to request a signed url

does convex allow this kind of authorization logic for api endpoints beyond checking a users auth state?
Was this page helpful?