feat: add clerk-helpers package
This commit is contained in:
parent
17d1bf065e
commit
e70d4d34c2
5 changed files with 36 additions and 0 deletions
3
packages/auth/helpers.ts
Normal file
3
packages/auth/helpers.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function hasRole(userRoles: string[], role: string): boolean {
|
||||
return userRoles.includes(role);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue