@daveyplate/better-auth-ui
Version:
Plug & play shadcn/ui components for better-auth
13 lines (12 loc) • 617 B
text/typescript
export const TEAM_ERROR_CODES = {
TEAM_LIMIT_REACHED: "Team limit reached for this organization",
TEAM_MEMBER_LIMIT_REACHED: "Team member limit reached for this team",
TEAM_NOT_FOUND: "Team not found",
TEAM_MEMBER_NOT_FOUND: "Team member not found",
TEAM_NAME_TOO_LONG: "Team name is too long",
CANNOT_REMOVE_LAST_TEAM: "Cannot remove the last team",
NOT_ORGANIZATION_MEMBER: "User is not a member of the organization",
ALREADY_TEAM_MEMBER: "User is already a member of this team",
INSUFFICIENT_TEAM_PERMISSIONS:
"Insufficient permissions to perform this action on team"
}