feat: add clerk-helpers package

This commit is contained in:
afiqzudinhadi 2025-06-23 14:36:26 +08:00
parent 17d1bf065e
commit e70d4d34c2
5 changed files with 36 additions and 0 deletions

3
packages/auth/helpers.ts Normal file
View file

@ -0,0 +1,3 @@
export function hasRole(userRoles: string[], role: string): boolean {
return userRoles.includes(role);
}