Having role on session, is this security issue and/or is there better way?
Hey quick question on t3 (more security and sessions) if i have this role property on the user and want to check it, everytime a call is made. Is it find to store it on the ctx.session.user object or is there a better way?
This role will obviously determine what privileges the user has and whether certain checks needs to be skip in case of the user is an admin etc.
Basically what i want to achieve is that when an admin checks a partners org it should skip the
Code:
schema.prisma:
File: [...nextauth].ts
router > organization.ts
This role will obviously determine what privileges the user has and whether certain checks needs to be skip in case of the user is an admin etc.
Basically what i want to achieve is that when an admin checks a partners org it should skip the
checkUserOwnsOrganization checkCode:
schema.prisma:
File: [...nextauth].ts
router > organization.ts
