hasTeam method
Whether the team claim includes teamId.
Teams are pure grouping: belonging to one grants nothing on its own, so this is for the application's own gating, never an authority check.
Implementation
bool hasTeam(String teamId) {
if (teamId.isEmpty) return false;
return teams?.contains(teamId) ?? false;
}