zor
CCConvex Community
•Created by zor on 9/4/2024 in #support-community
Are there any examples of best security practices for implementing role-based access control (RBAC)
Are there any examples of best security practices for implementing role-based access control (RBAC) when making requests in a Next.js application using Clerk for authentication and Convex as the backend? Specifically, how should server-side validation be approached?
8 replies
CCConvex Community
•Created by zor on 7/15/2024 in #support-community
Clerk authenticates, Convex do user management and features. Convex stores user data
Objective
Minimal Clerk Side: Use Clerk primarily for user authentication.
Convex for User Data Management: Store and manage all user-related data within Convex.
Key Steps
Set Up Convex Schema: Define the user schema in Convex to store necessary user data fields.
Use Convex for Data Operations: Implement queries and mutations in Convex to manage user data, ensuring that all relevant user information is stored in Convex so I can process.
I won't create custom flows with Clerk but I will build custom flows with my own database(fetch from my own DB, since storing the same data with Clerk which means similar thing) and backend but Clerk securely handles authentication
E.g. I won't use useUser(); from Clerk but useMyDatabaseUser();
In the philosophy of store minimal in Clerk. Isn't it better to manage such features¹ in Convex rather than Clerk?
¹:
E.g. features² probably something we wouldn't have in Convex and Clerk has some characteristics on them
²:
Feel free to share some insights!
My approach is copying the UserJSON to my database. Manage the user data from my databases User object and sync when it changes
So I will never use useUser() and as I said, useMyDatabaseUser()
39 replies
CCConvex Community
•Created by zor on 4/28/2024 in #support-community
Is there anything that I should know about using Kinde auth in Convex backend app?
I know Clerk and Convex is valid but I can't find anything about Kinde and Convex on internet
83 replies
CCConvex Community
•Created by zor on 2/18/2024 in #support-community
Where and how can I define my table?
7 replies