Valardir
Valardir
Explore posts from servers
BABetter Auth
Created by Valardir on 3/21/2025 in #help
Question about Access Control and Orgs
Hey. I'm relatively new to the world with Teams and Orgs. In my previous projects there were only like site Admins, Moderators, users and maybe guests. Now I would like to try the new Permission stuff in the Org plugin but I don't really know how to set it up the best way. My first thought would be creating one Org that holds all users of the page. Then deactivating org creation etc.. and set max members to a very high number. If later social features would require it I can introduce additonal orgs. Or how should I set it up? Currently and in the near future there is no need of multiple orgs or teams. Thanks!
7 replies
KKinde
Created by Valardir on 9/5/2024 in #💻┃support
getKindeServerSession() - secure?
Hi, I am currently building a webapp with NextJS and Kinde. If I use const {getUser} = getKindeServerSession(); in the server components, will fresh data be fetched directly from the Kinde database or does this method only read the cookie value of the currently logged in user? Use case: If users want to make changes to their profile data, only they should be able to do so. To check this condition, I first want to check if the user is authenticated, otherwise he will be redirected, and if he is, he can make changes to his profile data (server actions). The value is written to the secondary user database if the current user.id == userId in the database. Is there a better way to do this with one of the kinde tools?
2 replies